KnowledgeBase Archive

An Archive of Early Microsoft KnowledgeBase Articles

View on GitHub

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

Article: Q42856
Product(s): See article
Version(s): 4.00 4.00b 4.50
Operating System(s): MS-DOS
Keyword(s): ENDUSER | SR# S890221-68 buglist4.00 buglist4.00b buglist4.50 | mspl13_basic
Last Modified: 26-FEB-1990

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.

Microsoft has confirmed this to be a problem 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).

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

Additional reference word: B_BasicCom

THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Copyright Microsoft Corporation 1986-2002.