Introduction | Language Structure | IB Statements | File System | Comet 32 Runtime | Index |
Control: CRLF
Syntax: result-string = CONTROL(lun,"CRLF
flag")
Description: The CRLF control automatically terminates print records with a CR/LF (hex “@0D0A@”). This control simplifies the application that prints commands across the connection by eliminating the need to include CRLF characters at the end of each PRINT statement in the source program.
Flag Meaning
1 enable
0 disable
This feature is disabled by default.
This control is synonymous with the WEOL control.
Return values :
If no error occurs, CRLF returns +OK. Otherwise, it returns –ERR followed by detailed information on the nature of the error. These values are returned in the result-string.
Exceptions: EXCP 45 A syntax error was detected parsing the WEOL command string.
Example: PRINT (1) "Sample
Command@0D0A@"
A$ =
CONTROL(1,"CRLF 1")
PRINT (1) “Sample
Command”