grzegorz
26th January 2004, 13:08
A strange error has occurred to me...

We have some export functions, creating TAB delimited files with CR/LFs as line breaks. The source is as simple as that:

buf = sprintf$ ("%d%s%d%s%s%s%s%s%s%s%s%s%s%s%s",
aabbb001.ident, chr$(09),
aabbb001.year, chr$(09),
strip$(aabbb001.name), chr$(09),
strip$(aabbb001.surname), chr$(09), ... etc,
chr$(13),chr$(10) )

ret_val = SEQ.WRITE (buf,len(buf),file)

And, suddenly after upgrade to porting set 6.1c.07.02 tabs and CR/LFs disappeared! Simply not present in buf string.
Of course when we moved back to 6.1c.06.06c, they are back as well. Seems that chr$() stopped working.
Has anybody seen this error also? Or, for workaround, how to insert tabs without calling chr$() function?


We are on BaaN IV c4, Sun Solaris, porting set as above.

gfasbender
26th January 2004, 17:11
Try using %c in sprintf$() for characters, instead of %s (string).