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



The information in this article applies to:

  • Microsoft QuickBASIC Compiler for the Apple Macintosh 1.0e

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.

Modification Type:MinorLast Reviewed:1/9/2003
Keywords:kbbug KB85154