Microsoft KB Archive/42856

= BC.EXE &quot;Line Too long&quot; with ASCII 128 and Fast Load Format =

Article ID: 42856

Article Last Modified on 11/21/2006



This article was previously published under Q42856



SYMPTOMS
The BC.EXE compiler in QuickBasic Versions 4.00, 4.00b, and 4.50 produces the error message &quot;Line too long&quot; if the character ASCII 128 is included into a string literal and the file being compiled is in Fast Load and Save format. (This character is entered into the QB.EXE editor by holding down CTRL+ALT while typing the numbers &quot;128&quot; on the numeric keypad and then releasing the keys.)

This problem does not occur when the program is run in the QB.EXE editor.



STATUS
Microsoft has confirmed this to be a bug in QuickBasic Versions 4.00, 400b, and 4.50. This problem was corrected in Microsoft Basic Professional Development System (PDS) Version 7.00 for MS-DOS and MS OS/2 (fixlist7.00).

BC.EXE correctly compiles the program with the character ASCII 128 if it is saved in TEXT format (instead of Fast Load format).



MORE INFORMATION
The extended ASCII characters are not legal for Basic variable names. If used, they produce the error message &quot;Expected: end-of-statement&quot; when using QB.EXE or &quot;Illegal character&quot; when using BC.EXE.

An ASCII 128 character compiles without errors in QuickBasic Version 3.00.

You can use either of the following methods to work around the problem:

 Save the file as text before compiling.  This character can be included in strings by using the CHR$ function. The following example shows how to print this character as part of a string: PRINT &quot;ABCD&quot; + CHR$(128) + &quot;EFG&quot; PRINT &quot;ABCD&quot;;CHR$(128);&quot;EFG&quot; END 

The following is a code example: ' This program produces the compile time error ' &quot;Line too long&quot; if saved in QuickLoad format. PRINT &quot;CTRL+ALT+128&quot; END

Additional query words: B_BasicCom SR# S890221-68 buglist4.00 buglist4.00b buglist4.50

Keywords: KB42856

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.