HTBasic Help
×
Menu
Index

Statement Termination

 
For both string and numeric items, if the last item was not terminated with a LF, CR/LF, or an EOI signal, then additional characters are read (but thrown away) until one of these terminators is received. If no terminator is found within 255 characters, an error is reported.
 
DIM A$[30],B$[2]
A$="hello + 1 2 3 goodbye"&CHR$(13)&CHR$(10)
ENTER A$;B$
 
In this example, because B$ has a dimensioned length of two characters, it is assigned the value "he". The remaining characters are thrown away, and the CR/LF terminate the ENTER.
 
Note: LF or CR/LF are always used for the termination of ENTER, regardless of the setting of EOL in the ASSIGN statement.