Differences Between QuickBasic and Visual Basic StatementsLast reviewed: June 21, 1995Article ID: Q87004 |
The information in this article applies to:
- Standard and Professional Editions of Microsoft Visual Basic for Windows, versions 2.0 and 3.0- Microsoft Visual Basic programming system for Windows, version 1.0
SUMMARYThe following is a list of statements and functions not shared between Microsoft QuickBasic version 4.5 for MS-DOS, Microsoft Visual Basic programming system version 1.0 for Windows, and the Standard and Professional Editions of Microsoft Visual Basic version 2.0 for Windows.
MORE INFORMATIONThe following table compares reserved words in QuickBasic for MS-DOS to those in Visual Basic for Windows. NOTE: Frequently a statement or function is not supported in one language or the other because there is a different approach to achieve the same result. A good example of this is the LPRINT statement in QuickBasic. Visual Basic has a Printer object that handles the output to the system printer. In some cases, a statement or function is not supported because it is a low level MS-DOS operation that conflicts with Windows, or it is a function that is only supported in Windows.
QuickBasic 4.5 Visual Basic 1.0 Visual Basic 2.0 Keyword for MS-DOS for Windows for Windows BLOAD Yes No No BSAVE Yes No No CALL ABSOLUTE Yes No No CALLS Yes No No CCur No Yes Yes CDbl No Yes Yes CHAIN Yes No No ChDrive No Yes Yes CInt No Yes Yes CLEAR Yes No No CLng No Yes Yes COLOR Yes No No COM Yes No No CSng No Yes Yes CSRLIN Yes No No CVD Yes No No CVDMBF Yes No No CVI Yes No No CVS Yes No No CVSMBF Yes No No DATA Yes No Yes DateSerial No Yes Yes DateValue No Yes Yes Day No Yes Yes DEF FN Yes No No DEF SEG Yes No No Dir$ No Yes Yes DoEvents No Yes Yes DRAW Yes No No ERDEV Yes No No ERDEV$ Yes No No Error$ No Yes Yes FIELD Yes No No FILES Yes No No FRE Yes No No Global No Yes Yes Hour No Yes Yes INKEY$ Yes No No INP Yes No No InputBox$ No Yes Yes IOCTL Yes No No IOCTL$ Yes No No KEY Yes No No Load No Yes Yes LoadPicture No Yes Yes LOCATE Yes No No LPOS Yes No No LPRINT Yes No No Minute No Yes Yes MKD$ Yes No No MKI$ Yes No No MKL$ Yes No No MKS$ Yes No No MKSMBF$ Yes No No Month No Yes Yes MsgBox No Yes Yes Now No Yes Yes ON COM Yes No No ON KEY Yes No No ON PLAY Yes No No ON STRIG Yes No No ON TIMER Yes No No OUT Yes No No PAINT Yes No No PALETTE Yes No No PCOPY Yes No No PEEK Yes No No PEN Yes No No PLAY Yes No No PMAP Yes No No POKE Yes No No POS Yes No No PRESET Yes No No QBColor No Yes Yes RESTORE Yes No No RGB No Yes Yes RUN Yes No No SADD Yes No No SavePicture No Yes Yes SCREEN Yes No No Second No Yes Yes SendKeys No Yes Yes SETMEM Yes No No SLEEP Yes No No SOUND Yes No No STICK Yes No No STRIG Yes No No SWAP Yes No No TimeSerial No Yes Yes TimeValue No Yes Yes TROFF Yes No No TRON Yes No No Unload No Yes Yes USING$ Yes No No VARPTR Yes No No VARPTR$ Yes No No VARSEG Yes No No VIEW Yes No No WAIT Yes No No WeekDay No Yes Yes WIDTH Yes No No WINDOW Yes No No Year No Yes Yes |
Additional reference words: 1.00 2.00 3.00
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |