This classification list only includes some of the Visual Basic commands that are useful for beginners. The space is limited. If you want to know the detailed usage of the commands, please refer to VB Help or other related VB books. One thing to remember is: don't confuse VB commands with the properties of VB controls!
-------------------------------------------------- --------------------------
Sequential File Random File Binary Other I/O
-------------------------------------------------- --------------------------
OPENWRITE #OPENGETOPENGETDATARUN
CLOSEPRINT#CLOSEPUTCLOSEPUTREADCHAIN
RESETPRINT#USINGRESETFIELDRESETLOCKRESTOREINKEY$
EOFINPUT#EOFLSETEOFUNLOCKENVIRONLPRINT
LOCLINEINPUT$#LOCRSETLOCFREEFILEENVIRON$TAB
LOFFREEFILELOFMK...LOFINPUT$SYSTEM
LOCKSEEKCV...SEEKLINEINPUT$SLEEP
UNLOCKSEEK#LOCKSEEK#VIEWPRINTEND
FILEATTRFREEFILEUNLOCKFILEATTRDATE$STOP
FILEATTRTIME$LPOS
TRONSTICK
RND#range:int((up-lo 1)*RND lo)TROFFSTRIG
IOCTLREM
IOCTL$
-------------------------------------------------- -------------------
String DOS display statement
-------------------------------------------------- -------------------
UCASE$CHR$SHELLLOCATECOLORMainProcedures
LCASE$ASCFILESPRINTSOUND-------------------
LEFT$VALNAMECLSCLEARDECLARE
LTRIM$SPCKILLBEEPPLAYCOMMON
RIGHT$SPACE$MKDIRVIEWPRINTPOSOPTIONBASE
RTRIM$STR$CHDIRWIDTHCSRLINCONST
MID$INSTRRMDIRDEFN
LENSTRING$FILEATTRSTATICSTATIC
LSETSWAPDIR$SHAREDSHARED
RSETFREDIMDIM
ENVIRONREDIMREDIM
ENVIRON$DEFINTDEFINT
-------------------------------------------------- ---DEFSTRDEFSTR
QUICKBASIC special command memory/array DEFCURDEFCUR
-------------------------------------------------- ---DEFINTDEFINT
LOCALALIAS$INCLUDEPEEKBLOADVARPTRDEFLNGDEFLNG
SADDBYVALInt86POKEBSAVEVARPTR$DEFSNGDEFSNG
SETMEMCDECLint86xCLEARUBOUNDVARSEGDEFDBLDEFDBL
SIGNALCOMMAND$INTERRUPTERASELBOUNDFRETYPE...TYPE...
EVENTUEVENTINTERRUPTXDEFSEG
VARPTrssEG
VARSEG
-------------------------------------------------- --------------------------
Loops and conditions
-------------------------------------------------- --------------------------
FORiTOjSTEPkWHILEcondIF__THEN__ELSESELECTCASE
EXITFOR-CASE__,__
NEXTWEND-IF__THENCASEIScond
ELSEIF__THEN__CASE__TO__
DOWHILE|UNTILcondELSE__CASEELSE
EXITDOENDIFENDSELECT
LOOPWHILE|UNTILcond
-------------------------------------------------- --------------------------
Graphics procedure file type event handling
-------------------------------------------------- --------------------------
PSETLINESUB...INPUTONKEY()GOSUB
PRESETCIRCLEFUNCTION...OUTPUTCOM()
POINTDRAWCALLAPPENDPEN
BSAVEPAINTGOTORANDOMPLAY()
BLOADPALETTEGOSUBBINARYSTRIG()
PCOPYVIEWRESUMETIMER()
PMAPWINDOWRETURN__GOSUB_,_,_
SCREENCOLORCALLABSOLUTE__GOTO_,_,_
SOUND=NumericExp
COMON|OFF|STOP
-------------------------------------------------- --------------------------
Numeric logical data type port error handling
-------------------------------------------------- --------------------------
HEX$RNDMODIMPASSINGLEFIXINPERDEVERR
OCT$SGNABSANDDOUBLECINTOUTERDEV$ERL
SWAPSINSQRORLONGINTWAITONERRORERROR
EXPCOSLOGXORINTEGERCSNG
TANLETATNNOTSTRINGCDBLONERRORGOTO
RANDOMIZEEQVCLNGONLOCALERRORGOTO
ONERRORRESUMENEXT
ONLOCALERRORRESUMENEXT
RESUME
EVENTON
EVENTOFF
RETURN->