how to put special char without skipping into new line

girlene

New Member
hi all,

i'm currently making a text report using progress open edge 10.1.c,
but i have problem on putting special character using CHR(n) on my reports.

for examples :
FORM HEADER
FILL(CHR(179),1) FORMAT 'x(1)' AT 1 "This Is Example" AT 2 SKIP
WITH FRAME framex WIDTH 100 PAGE-TOP NO-BOX.

this will make my first word, which is CHR(179), in first line, and my second word ("This is example") in second line, while it both supposed meant to be in first line.

i've tried to use static row, using AT ROW x COL y and it worked but it didn't solved my problem, because i'm making a dynamic row on my report.

please, anyone can help me with this problem?

Thanks,
Lynn
 

sphipp

Member
Try

Code:
FORM HEADER
FILL(CHR(179),1) FORMAT 'x(1)' AT 1 SPACE (0) "This Is Example"  SKIP
WITH FRAME framex WIDTH 100 PAGE-TOP NO-BOX STREAM-IO.

STREAM-IO is the best option for reports as it keeps everything lined up nicely.

SPACE(0) puts the next item right next to the last one, with no spaces between them (Progress normally puts a space between items).

If you have the AT COL 2 phrase then Progress puts this on a new line because it expects the next item to begin at COL 3, because of the space it put in, so it assumes this is a new line.
 

TomBascom

Curmudgeon
FORMs may not be the best choice.

If you're ouputting special characters you might want to be using PUT CONTROL.
 

girlene

New Member
Thanks all for the replies..

sphipp, i have tried your method, and it worked properly, thank u :up:


Lynn
 
Top