KnowledgeBase Archive

An Archive of Early Microsoft KnowledgeBase Articles

View on GitHub

Q35247: QB.EXE "Bad File Mode" if First Character Extended ASCII

Article: Q35247
Product(s): See article
Version(s): 4.00 4.00b 4.50
Operating System(s): MS-DOS
Keyword(s): ENDUSER | | mspl13_basic
Last Modified: 13-DEC-1989

The error "Bad File Mode" will occur while opening or loading a
document file in the QB.EXE editor if an extended ASCII character is
the very first character in the file. To avoid this error, put a space
or a blank line before the extended ASCII character so that it is not
the first character in the file. This error does not occur in the
QB.EXE editor which comes with Microsoft QuickBASIC Version 4.50 or in
the QBX.EXE environment that comes with Microsoft BASIC PDS Version
7.00.

In the QB.EXE editor in QuickBASIC Versions 2.00, 2.01, and 3.00,
extended ASCII characters are not allowed within the first 80 bytes of
the loaded file. (The same is true for QB87.EXE in Version 3.00.)

Extended ASCII bytes have values from 128 to 255.

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.