WEB开发网
开发学院WEB开发综合 VisualBasic命令分类表 阅读

VisualBasic命令分类表

 2006-02-27 11:47:14 来源:WEB开发网   
核心提示:本分类表仅包括部分VisualBasic对初学者有用的命令,限于篇幅,VisualBasic命令分类表,如果您想了解命令的详细用法,请参看VB帮助或其它有关VB书籍
本分类表仅包括部分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...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->

Tags:VisualBasic 命令 分类

编辑录入:爽爽 [复制链接] [打 印]
赞助商链接