BUG: IF Statement with POS Function Problem in Decimal QB (84384)
This article was previously published under Q84384
SYMPTOMS
The following code evaluates differently within the interpreters of
the binary and decimal versions of QuickBasic for the Macintosh:
FOR I = 1 TO 5
PRINT "1";
' POS returns the current horizontal column position of
' text printed to the output window
IF I + 1 <> POS(n) THEN BEEP
NEXT I
' wait for mouse click to continue
WHILE MOUSE(0) = 0 : WEND
The binary version of QuickBasic for the Macintosh works correctly
(with no beeps) and the decimal version of QuickBasic for the
Macintosh behaves incorrectly (as shown with a beep). Running in the
decimal version will cause five beeps at run time. The above code
executes correctly as an application compiled from either version of
QuickBasic for the Macintosh.
Microsoft has confirmed this to be a bug with Microsoft QuickBasic
versions 1.0, 1.0a, and 1.0b for the Macintosh . We are
researching this problem and will post new information here as it
becomes available.
| Modification Type: |
Minor |
Last Reviewed: |
1/9/2003 |
| Keywords: |
kbbug KB84384 |
|