Microsoft KB Archive/44356

= BUG: SYSTEM(2) Function Incorrectly Returns 4 Interpreted =

Article ID: 44356

Article Last Modified on 11/21/2006



This article was previously published under Q44356



SYMPTOMS
The SYSTEM(2) function should return the QuickBasic version number for Microsoft QuickBasic Version 1.00 for the Macintosh. However, SYSTEM(2) incorrectly returns a value of 4 within QuickBasic's interpreter. The correct value returned should be 1. If the same code is compiled into an application, the correct version number, 1, is returned.

Microsoft has confirmed this to be a bug within the interpreter of QuickBasic Version 1.00 for the Macintosh. We are researching this problem and will post new information as it becomes available.



MORE INFORMATION
The SYSTEM function in Microsoft QuickBasic Version 1.00 allows the programmer to obtain useful information about the machine the code is running on.

Refer to Pages 323-324 in the &quot;Microsoft QuickBasic for Apple Macintosh: Language Reference&quot; for more information about the SYSTEM(n) function, where the n argument can be 0, 1, 2, 3, 4, 5, or 6. An additional function, SYSTEM(7), is documented in the README file and in separate articles in the Microsoft KnowledgeBase.

Code Example
PRINT SYSTEM(2)  ' Prints 4 interpreted (wrong); 1 compiled (ok)

Additional query words: MQuickB

Keywords: kbbug KB44356

-

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

© Microsoft Corporation. All rights reserved.