Microsoft KB Archive/85154

= BUG: SYSTEM(1) Function Gives Incorrect Value in 1.0e Env =

Article ID: 85154

Article Last Modified on 1/9/2003

-

APPLIES TO


 * Microsoft QuickBasic Compiler for Macintosh 1.0

-



This article was previously published under Q85154



SYMPTOMS
In the QuickBasic environment version 1.0e for Macintosh, the function SYSTEM(1) incorrectly returns a value 2 greater than in earlier versions of QuickBasic. This does not happen in a compiled program.

Microsoft has confirmed this to be a bug with Microsoft QuickBasic 1.0e for the Macintosh. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.



MORE INFORMATION
The SYSTEM(1) function returns an integer number that represents the machine type. SYSTEM(1) returns the following values from within the environment and from compiled programs for versions of QuickBasic earlier than version 1.0e:   Return  Machine Value  Type -- ---

0      Unknown 1      Mac 512K 2      Mac Plus 3      Mac SE   4       Mac II   5       Mac IIx 6      Mac IIcx 7      Mac SE/30 8      Portable 9      Mac IIci 11      Mac IIfx 15      Mac Classic 16      Mac easy 17      Mac LC In QuickBasic 1.0e, from within the environment, the return values for the SYSTEM(1) function are as follows:   0       Unknown 3      Mac 512K 4      Mac Plus 5      Mac SE   6       Mac II   7       Mac IIx 8      Mac IIcx 9      Mac SE/30 10      Portable 11      Mac IIci 13      Mac IIfx 17      Mac Classic 18      Mac easy 19      Mac LC If you compile the program, the SYSTEM(1) works as it did before. This can cause problems to programs that are expecting certain hardware configurations.

Additional query words: MQuickB 1.00e

Keywords: kbbug KB85154

-

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

© Microsoft Corporation. All rights reserved.