Description
CR/LF's in a .pas file cause parsing problems.
CR/LF's need to be Encoded in the .pas file with a set of characters that will not cause parsing problems.
Solution
In Loftware Versions 5.3 and above, support was added for two new .pas file commands: *ENCODELF,ASCIICHAR *ENCODECR,ASCIICHAR
The data after the comma is the decimal value of the character.
Example
If you need to have a CR in a data block (for a paragraph field), your .pas file might look like this:
*FORMAT,mylabel *PRINTERNUMBER,1 *ENCODECR,63 PARTNO,1A342 DESC,GREEN WIDGET?WITH SQUARE SIDES? *PRINTLABEL
When the *ENCODECR finds an occurance of the ASCII 63 char (which is a "?"), a Carriage Return will occur.
Related Articles