BC.EXE "Line Too Long" for Source Lines of 256+ Characters (26605)
The information in this article applies to:
- Microsoft QuickBASIC 4.0
- Microsoft QuickBASIC 4.0b
- Microsoft QuickBASIC 4.5
- Microsoft Basic Professional Development System (PDS) for MS-DOS and MS OS/2 7.0
This article was previously published under Q26605 SUMMARY
The program below, which has a 263-character-long CONST statement in
one line, runs without error when loaded in the QB.EXE or QBX.EXE
environment, but gives a "Line too long" error when compiled with the
BC.EXE compiler.
A blank line filled with 256 or more space characters (ASCII byte
value 32) also gives a "Line too long" error at compile time with
BC.EXE. This is difficult to see, unless you put the cursor on the
blank line and press the END key to move the cursor to the actual end
of the line. The column status indicator in the lower-right corner of
the QB.EXE or QBX.EXE environment then shows the number of characters
in that line.
The "Line too long" error occurs by design in both cases above because
the BC.EXE compiler restricts line length to 255 characters, which
includes the CR (carriage return), LF (linefeed), and the underscore
(_) line-continuation character. (Note that the QBX.EXE editor
automatically removes the underscore character and concatenates the
continued lines; other editors will keep the underscore.)
Modification Type: | Minor | Last Reviewed: | 8/16/2005 |
---|
Keywords: | KB26605 |
---|
|