Help and Support
 

powered byLive Search

BC.EXE "Line Too long" with ASCII 128 and Fast Load Format

Article ID:42856
Last Review:November 21, 2006
Revision:1.2
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 "Line too long" 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 "128" on the numeric keypad and then releasing the keys.)

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

Back to the top

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).

Back to the top

MORE INFORMATION

The extended ASCII characters are not legal for Basic variable names. If used, they produce the error message "Expected: end-of-statement" when using QB.EXE or "Illegal character" 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:

1.Save the file as text before compiling.
2.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 "ABCD" + CHR$(128) + "EFG"
      PRINT "ABCD";CHR$(128);"EFG"
      END
						
The following is a code example:
   ' This program produces the compile time error
   ' "Line too long" if saved in QuickLoad format.
   PRINT "CTRL+ALT+128"
   END
				

Back to the top

Keywords: 
KB42856

Back to the top

Article Translations

 

Other Support Options

  • Need More Help?
    Contact a Support professional by E-mail, Online or Phone.
  • Customer Service
    For non-technical assistance with product purchases, subscriptions, online services, events, training courses, corporate sales, piracy issues, and more.
  • Newsgroups
    Pose a question to other users. Discussion groups and Forums about specific Microsoft products, technologies, and services.