本分類表僅包括部分VisualBasic對初學者有用的命令,限於篇幅,如果您想了解命令的詳細用法,請參考VB幫助或其它有關VB書籍。有一點要記住的是:不要把VB指令同VB控制項的屬性混淆!
-------------------------------------------------- --------------------------
順序檔案隨機檔案二進制其它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$
-------------------------------------------------- -------------------
字串DOS顯示聲明
-------------------------------------------------- -------------------
UCASE$CHR$SHELLLOCATECOLORMainProcedures
LCASE$ASCFILESPRINTSOUND-------------------
LEFT$VALNAMECLSCLEARDECLARE
LTRIM$SPCKILLBEEPPLAYCOMMON
RIGHT$SPACE$MKDIRVIEWPRINTPOSOPTIONBASE
RTRIM$STR$CHDIRWIDTHCSRLINCONST
MID$INSTRRMDIRDEFFN
LENSTRING$FILEATTRSTATICSTATIC
LSETSWAPDIR$SHAREDSHARED
RSETFREDIMDIM
ENVIRONREDIMREDIM
ENVIRON$DEFINTDEFINT
-------------------------------------------------- ---DEFSTRDEFSTR
QUICKBASIC專用指令記憶體/陣列DEFCURDEFCUR
-------------------------------------------------- ---DEFINTDEFINT
LOCALALIAS$INCLUDEPEEKBLOADVARPTRDEFLNGDEFLNG
SADDBYVALInt86POKEBSAVEVARPTR$DEFSNGDEFSNG
SETMEMCDECLInt86xCLEARUBOUNDVARSEGDEFDBLDEFDBL
SIGNALCOMMAND$INTERRUPTERASELBOUNDFRETYPE...TYPE...
EVENTUEVENTINTERRUPTXDEFSEG
VARPTrssEG
VARSEG
-------------------------------------------------- -------------------------
循環和條件
-------------------------------------------------- -------------------------
FORiTOjSTEPkWHILEcondIF__THEN__ELSESELECTCASE
EXITFOR-CASE__,__
NEXTWEND-IF__THENCASEIScond
ELSEIF__THEN__CASE__TO__
DOWHILE|UNTILcondELSE__CASEELSE
EXITDOENDIFENDSELECT
LOOPWHILE|UNTILcond
-------------------------------------------------- -------------------------
圖形過程檔案類型事件處理
-------------------------------------------------- -------------------------
PSETLINESUB...INPUTONKEY()GOSUB
PRESETCIRCLEFUNCTION...OUTPUTCOM()
POINTDRAWCALLAPPENDPEN
BSAVEPAINTGOTORANDOMPLAY()
BLOADPALETTEGOSUBBINARYSTRIG()
PCOPYVIEWRESUMETIMER()
PMAPWINDOWRETURN__GOSUB_,_,_
SCREENCOLORCALLABSOLUTE__GOTO_,_,_
SOUND=NumericExp
COMON|OFF|STOP
-------------------------------------------------- --------------------------
數位邏輯資料類型連接埠錯誤處理
-------------------------------------------------- --------------------------
HEX$RNDMODIMPASSINGLEFIXINPERDEVERR
OCT$SGNABSANDDOUBLECINTOUTERDEV$ERL
SWAPSINSQRORLONGINTWAITONERRORERROR
EXPCOSLOGXORINTEGERCSNG
TANLETATNNOTSTRINGCDBLONERRORGOTO
RANDOMIZEEQVCLNGONLOCALERRORGOTO
ONERRORRESUMENEXT
ONLOCALERRORRESUMENEXT
RESUME
EVENTON
EVENTOFF
RETURN->