Microsoft KB Archive/64592

= &quot;Overflow&quot; from &quot;&H nn&quot; or &quot;&O nn&quot; with Illegal Embedded Space =

Article ID: 64592

Article Last Modified on 11/21/2006

-

APPLIES TO


 * Microsoft QuickBasic 4.0
 * Microsoft QuickBASIC 4.0b
 * Microsoft QuickBasic 4.5 for MS-DOS
 * Microsoft BASIC Compiler 6.0
 * Microsoft BASIC Compiler 6.0b
 * Microsoft BASIC Professional Development System 7.0
 * Microsoft BASIC Professional Development System 7.1

-



This article was previously published under Q64592



SUMMARY
The ampersand character, when used to signify Hexadecimal (&H) or Octal (&O) values, can give an &quot;Overflow&quot; error if a space is embedded in the number.

This information applies to QuickBasic versions 4.00, 4.00b, and 4.50, to Microsoft Basic Compiler versions 6.00 and 6.00b, and to Microsoft Basic Professional Development System (PDS) versions 7.00 and 7.10 for MS-DOS and MS OS/2.



MORE INFORMATION
The following code examples cause an &quot;Overflow&quot; error (in the QB.EXE or QBX.EXE environment or in the BC.EXE compiler): AnyVarName = &H 80 AnyVarName = & 80 AnyVarName = &O 80 PRINT &H 80 The QBX.EXE environment immediately displays this error message because of the syntax checker, while the QB.EXE environment only catches the error upon execution.

QuickBasic compiler versions 3.00 and earlier ignore this syntax error and interpret the faulty information as a zero (0).

Additional query words: QuickBas BasicCom

Keywords: KB64592

-

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

© Microsoft Corporation. All rights reserved.