01-09-2005, 09:39 PM
In that case, just drop the idea of having $OPTION ESCAPE and add CR, LF, CRLF, TAB and QUOTE keywords would be more peaceful to coder minds.
Example1:
Example2:
Then, it would be readable source code for that purposes.
Btw, here is the most needed constants for the above needs:
Example1:
Code:
PRINT "Value a:";TAB;a;CRLF;"Value b:";TAB;b
'-- or --
PRINT "Value a:"+TAB+str$(a)+CRLF+"Value b:"+TAB+str$(b)
'PRINT-OUT:
'--------------------------------------
Value a: 1234
Value b: 5678
'--------------------------------------
Example2:
Code:
PRINT QUOTE+"This word"+QUOTE
'PRINT-OUT:
'--------------------------------------
"This word"
'--------------------------------------
Then, it would be readable source code for that purposes.
Btw, here is the most needed constants for the above needs:
Code:
#DEFINE CR &H0D
#DEFINE LF &H0A
#DEFINE CRLF &H0A0D
#DEFINE QUOTE &H22
#DEFINE TAB &H09
#DEFINE ESC &H1B
#DEFINE BELL &H07
= inc(¢)