VisualBasic命令分类表
下面图老师小编要跟大家分享VisualBasic命令分类表,简单的过程中其实暗藏玄机,还是要细心学习,喜欢还请记得收藏哦!
----------------------------------------------------------------------------
顺序文件随机文件二进制其它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...OUTPUT"COM()"
POINTDRAWCALLAPPEND"PEN"
BSAVEPAINTGOTORANDOM"PLAY()"
BLOADPALETTEGOSUBBINARY"STRIG()"
PCOPYVIEWRESUME"TIMER()"
PMAPWINDOWRETURN"__GOSUB_,_,_
SCREENCOLORCALLABSOLUTE"__GOTO_,_,_
SOUND"=NumericExp
COMON|OFF|STOP
----------------------------------------------------------------------------
数字逻辑数据类型端口错误处理
----------------------------------------------------------------------------
HEX$RNDMODIMPASSINGLEFIXINPERDEVERR
OCT$SGNABSAND"DOUBLECINTOUTERDEV$ERL
SWAPSINSQROR"LONGINTWAITONERRORERROR
EXPCOSLOGXOR"INTEGERCSNG
TANLETATNNOT"STRINGCDBLONERRORGOTO
RANDOMIZEEQVCLNGONLOCALERRORGOTO
ONERRORRESUMENEXT
ONLOCALERRORRESUMENEXT
RESUME
EVENTON
EVENTOFF
RETURN->