Differences Between MS-DOS and Macintosh QuickBasic Statements

Article translations Article translations
Article ID: 35886 - View products that this article applies to.
This article was previously published under Q35886
This article has been archived. It is offered "as is" and will no longer be updated.
Expand all | Collapse all

SUMMARY

The following is a list of statements and functions not shared between Microsoft QuickBasic versions 4.0, 4.0b, or 4.5 for MS-DOS machines and Microsoft QuickBasic version 1.0 for Macintosh machines. The list for QuickBasic versions 4.0, 4.0b, and 4.5 for MS-DOS also applies to Microsoft Basic Compiler versions 6.0 and 6.0b for MS-DOS.

Many of these differences are machine or operating system dependent such as STICK, VARSEG, or ENVIRON$, where there is no equivalent in the other environment.

MORE INFORMATION

The following table compares reserved words in QuickBasic for MS-DOS versus QuickBasic for Macintosh.
                                      QuickBasic 4.0  QuickBasic 1.0
   Keyword                            for MS-DOS      for Macintosh
   -------                            --------------  --------------

   BLOAD                              Yes             No
   BREAK ON/OFF/STOP                  No              Yes
   BSAVE                              Yes             No
   BUTTON function                    No              Yes
   BUTTON statement                   No              Yes

   CALLS                              Yes             No
   CALL ABSOLUTE                      Yes             No
   CALL INT86OLD                      Yes             No
   CALL INTERRUPT                     Yes             No
   COLOR                              Yes             No

   COMMAND$                           Yes             No
   COMMON SHARED                      Yes             No
   COMMON /name/                      Yes             No
   CONST                              Yes             No
   CONT                               No              Yes

   CVDBCD                             No              Yes
   CVDMBF                             Yes             No
   CVSBCD                             No              Yes
   CVSMBF                             Yes             No

                                      QuickBasic 4.0  QuickBasic 1.0
   Keyword                            for MS-DOS      for Macintosh
   -------                            --------------  --------------

   DECLARE                            Yes             No
   DEFSEG                             Yes             No
   DIALOG function                    No              Yes
   DIALOG ON/OFF/STOP                 No              Yes
   DO...LOOP                          Yes             No

   DRAW                               Yes             No
   EDIT$                              No              Yes
   EDIT FIELD                         No              Yes
   ENVIRON$ function                  Yes             No
   ENVIRON statement                  Yes             No

   FILES$                             No              Yes
   FILEATTR                           Yes             No
   FUNCTION                           Yes             No
   GET...STEP attribute (graphics)    Yes             No
   INP                                Yes             No

   IOCTL statement                    Yes             No
   IOCTL$ function                    Yes             No
   KEY statements                     Yes             No

                                      QuickBasic 4.0  QuickBasic 1.0
   Keyword                            for MS-DOS      for Macintosh
   -------                            --------------  --------------

   KEY(n) statements                  Yes             No
   LCASE$ function                    Yes             No
   LCOPY                              No              Yes
   LIBRARY/LIBRARY CLOSE              No              Yes
   LOAD                               No              Yes

   LOCK/UNLOCK                        Yes             No
   LTRIM$                             Yes             No
   MENU function                      No              Yes
   MENU ON/OFF/STOP                   No              Yes
   MENU/MENU RESET statements         No              Yes

   MERGE (in environment only)        No              Yes
   MKDBCD$                            No              Yes
   MKDIR                              Yes             No
   MKDMBF$                            Yes             No
   MKSBCD$                            No              Yes

   MKSMBF$                            Yes             No
   MOUSE function                     No              Yes
   MOUSE ON/OFF/STOP                  No              Yes
   ON BREAK GOSUB                     No              Yes
   ON COM(n)                          Yes             No
   ON DIALOG GOSUB                    No              Yes

                                      QuickBasic 4.0  QuickBasic 1.0
   Keyword                            for MS-DOS      for Macintosh
   -------                            --------------  --------------

   ON KEY(n)                          Yes             No
   ON MENU GOSUB                      No              Yes
   ON MOUSE GOSUB                     No              Yes
   ON PEN                             Yes             No
   ON PLAY(quelimit)                  Yes             No

   ON STRIG(n)                        Yes             No
   OPEN COM                           Yes             No
   OPEN...ACCESS attribute            Yes             No
   OPEN...lock type                   Yes             No
   OUT                                Yes             No

   PAINT                              Yes             No
   PALETTE                            Yes             No
   PALETTE USING                      Yes             No
   PCOPY                              Yes             No
   PEEKL                              No              Yes

   PEEKW                              No              Yes
   PEN function                       Yes             No

                                      QuickBasic 4.0  QuickBasic 1.0
   Keyword                            for MS-DOS      for Macintosh
   -------                            --------------  --------------

   PEN ON/OFF/STOP statements         Yes             No
   PICTURE ON/OFF statements          No              Yes
   PICTURE statement                  No              Yes
   PICTURE$ function                  No              Yes
   PLAY function                      Yes             No

   PLAY ON/OFF/STOP statements        Yes             No
   PMAP                               Yes             No
   POKEL/POKEW                        No              Yes
   PTAB                               No              Yes
   PUT...STEP attribute (grphics)     Yes             No

   REDIM                              Yes             No
   RTRIM$                             Yes             No
   SCREEN                             Yes             No
   SCROLL                             No              Yes
   SEEK function/statement            Yes             No

   SETMEM                             Yes             No
   SHELL                              Yes             No
   SOUND WAIT/RESUME                  No              Yes

                                      QuickBasic 4.0  QuickBasic 1.0
   Keyword                            for MS-DOS      for Macintosh
   -------                            --------------  --------------

   STATIC                             Yes             No
   STICK                              Yes             No
   STRIG function/statement           Yes             No
   STRIG ON/OFF/STOP                  Yes             No
   SYSTEM function                    No              Yes

   TYPE                               Yes             No
   UCASE$                             Yes             Yes
   UNLOCK                             Yes             No
   VARPTR$                            Yes             No
   VARSEG                             Yes             No
   VIEW                               Yes             No

   VIEW PRINT                         Yes             No
   WAIT                               Yes             No
   WAVE                               No              Yes
   WIDTH function                     No              Yes
   WINDOW CLOSE or WINDOW OUTPUT      No              Yes

   WINDOW function                    No              Yes
   WINDOW (for declare window)        No              Yes
   WINDOW (redefine logical coords)   Yes             No
				

Properties

Article ID: 35886 - Last Review: August 23, 2013 - Revision: 1.2
APPLIES TO
  • Microsoft QuickBasic 4.0, when used with:
    • Microsoft MS-DOS 6.22 Standard Edition
  • Microsoft QuickBASIC 4.0b, when used with:
    • Microsoft MS-DOS 6.22 Standard Edition
  • Microsoft QuickBasic 4.5 for MS-DOS, when used with:
    • Microsoft MS-DOS 6.22 Standard Edition
  • Microsoft QuickBasic Compiler for Macintosh 1.0
Keywords: 
kbnosurvey kbarchive KB35886

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com