Microsoft KB Archive/67160

= PRB: CXX0004: Syntax Error Can Be Caused by a Leading Zero =

Article ID: 67160

Article Last Modified on 12/1/2003

-

APPLIES TO


 * Microsoft CodeView 3.0
 * Microsoft CodeView 3.0
 * Microsoft CodeView 3.0
 * Microsoft CodeView 4.0
 * Microsoft CodeView 4.01
 * Microsoft CodeView 4.01
 * Microsoft CodeView 4.1
 * Microsoft CodeView 3.0
 * Microsoft CodeView 3.05
 * Microsoft CodeView 3.06
 * Microsoft CodeView 3.07
 * Microsoft CodeView 4.0
 * Microsoft CodeView 4.01
 * Microsoft CodeView 4.1

-



This article was previously published under Q67160



SYMPTOMS
An attempt to enter a value in CodeView fails and CodeView generates an error message. CodeView versions 4.0x, 4.1, and 4.25 generates one of the following messages:

CXX0004: Error: syntax error

-or-

CAN0004: Error: syntax error

-or-

CXX0013: Error: missing operator

-or-

CAN0013: Error: missing operator

CodeView versions 3.x generate the following message:

CV1017: syntax error



CAUSE
The value has a leading zero and contains an &quot;8&quot; or a &quot;9&quot;. CodeView treats a value that begins with a zero as an octal value. The error occurs when the value is not a legal octal value.



RESOLUTION
Remove any leading zeros from a decimal number. To enter a decimal number without regard to the current input radix, prefix the number with 0n. To enter a hexadecimal number, prefix the number with 0x.

Additional query words: 3.00 3.50 4.00 4.10

Keywords: kberrmsg kbbug kb16bitonly kbdebug kbprb KB67160

-

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

© Microsoft Corporation. All rights reserved.