vb指令集1-.pdf

上传人:索**** 文档编号:76242211 上传时间:2023-03-08 格式:PDF 页数:11 大小:24.91KB
返回 下载 相关 举报
vb指令集1-.pdf_第1页
第1页 / 共11页
vb指令集1-.pdf_第2页
第2页 / 共11页
点击查看更多>>
资源描述

《vb指令集1-.pdf》由会员分享,可在线阅读,更多相关《vb指令集1-.pdf(11页珍藏版)》请在taowenge.com淘文阁网|工程机械CAD图纸|机械工程制图|CAD装配图下载|SolidWorks_CaTia_CAD_UG_PROE_设计图分享下载上搜索。

1、Calendar 常数:vbCalGreg vbCalHijri Color 常数:vbBlack vbRed vbGreen vbYellow vbBlue vbMagenta vbCyan vbWhite Comparison 常数:VbUseCompareOption VbBinaryCompare VbTextCompare vbDatabaseCompareCompiler 常数:Win16 Win32 Date 常数:vbUseSystem vbSunday vbMonday vbTuesday vbWednesdayvbThursday vbFriday vbSaturdayfi

2、rstdayofyear:vbUseSystem VbUseSystemDayOfWeek VbFirstJan1 vbFirstFourDays vbFirstFullWeek 返回值:vbSunday vbMonday vbTuesday vbWednesdayvbThursday vbFriday vbSaturday日期格式常数:vbGeneralDate vbLongDate vbShortDate vbLongTime vbShortTimeDir、GetAttr 和 SetAttr 常数:vbNormal vbReadOnly vbHidden vbSystemvbVolume

3、vbDirectory vbArchive 驱动器类型常数:Unknown Removable Fixed Remote CDROM RAMDisk 文件属性常数:Normal ReadOnly Hidden System Volume Directory Archive Alias Compressed文件输入/输出常数:ForReading ForWriting ForAppendingIMEStatus 常数:vbIMEModeNoControl vbIMEModeOn vbIMEModeOff vbIMEModeDisable vbIMEModeHiragana vbIMEModeKa

4、takana vbIMEModeKatakanaHalf vbIMEModeAlphaFull vbIMEModeAlpha Keycode 常数:vbKeyLButton vbKeyRButton vbKeyCancel vbKeyMButton vbKeyBack vbKeyTab vbKeyClear vbKeyReturn vbKeyShift vbKeyControl vbKeyMenu vbKeyPause vbKeyCapital vbKeyEscape vbKeySpace vbKeyPageUp vbKeyPageDown vbKeyEnd vbKeyHome vbKeyLe

5、ft vbKeyUp vbKeyRight vbKeyDown vbKeySelect vbKeyPrint vbKeyExecute vbKeySnapshot vbKeyInsert vbKeyDelete vbKeyHelp vbKeyNumlock vbKeyA vbKeyB vbKeyC vbKeyD vbKeyE vbKeyF vbKeyG vbKeyH vbKeyI vbKeyJ vbKeyK vbKeyL vbKeyM vbKeyN vbKeyO vbKeyP vbKeyQ vbKeyR vbKeyS vbKeyT vbKeyU vbKeyV vbKeyW vbKeyX vbK

6、eyY vbKeyZ vbKey0 vbKey1 vbKey2 vbKey3 vbKey4 vbKey5 vbKey6 vbKey7 vbKey8 vbKey9 vbKeyNumpad0 vbKeyNumpad1 vbKeyNumpad2 vbKeyNumpad3 vbKeyNumpad4 vbKeyNumpad5 vbKeyNumpad6 vbKeyNumpad7 vbKeyNumpad8 vbKeyNumpad9 vbKeyMultiply vbKeyAdd vbKeySeparator vbKeySubtract vbKeyDecimal vbKeyDivide vbKeyF1 vbKe

7、yF2 vbKeyF3 vbKeyF4 vbKeyF5 vbKeyF6 vbKeyF7 vbKeyF8 vbKeyF9 vbKeyF10 vbKeyF11 vbKeyF12 vbKeyF13 vbKeyF14 vbKeyF15 vbKeyF16 Miscellaneous 常数:vbCrLf vbCr vbLf vbNewLine vbNullChar vbNullString vbObjectError vbTab vbBack vbFormFeed vbVerticalTab MsgBox 常数:vbOKOnly vbOKCancel vbAbortRetryIgnore vbYesNoC

8、ancel vbYesNo vbRetryCancel vbCritical vbQuestion vbExclamation vbDefaultButton1 vbDefaultButton2 vbDefaultButton3 vbDefaultButton4 vbApplicationModal vbSystemModal vbMsgBoxHelpButton VbMsgBoxSetForeground vbMsgBoxRight vbMsgBoxRtlReading vbOK vbCancel vbAbort vbRetry vbIgnore vbYes vbNo QueryClose

9、常数:vbFormControlMenu vbFormCode vbAppWindows vbAppTaskManager Shell 常数:vbHide vbNormalFocus vbMinimizedFocus vbMaximizedFocus vbNormalNoFocus vbMinimizeNoFocus 特殊文件夹常数:WindowsFolder SystemFolder TemporaryFolder StrConv 常数:vbUpperCase vbLowerCase vbProperCase vbWide vbNarrow vbKatakana vbHiragana vbU

10、nicode vbFromUnicode System Color 常数:vbScrollBars vbDesktop vbActiveTitleBar vbInactiveTitleBar vbMenuBar vbWindowBackground vbWindowFrame vbMenuText vbWindowText vbTitleBarText vbActiveBorder vbInactiveBorder vbApplicationWorkspace vbHighlight vbHighlightText vbButtonFace vbButtonShadow vbGrayText

11、vbButtonText vbInactiveCaptionText vb3Dhighlight vb3DDKShadow vb3Dlight vbInfoText vbInfoBackground 三态常数:TristateTrue TristateFalse TristateUseDefault VarType 常数:vbEmpty vbNull vbInteger vbLong vbSingle vbDouble vbCurrency vbDate vbString vbObject vbError vbBooleanvbVariant vbDataObject vbDecimal vb

12、Byte vbUserDefinedType vbArray Boolean 数据类型 Byte 数据类型 Currency 数据类型 Date 数据类型Decimal 数据类型 Double 数据类型 Integer 数据类型 Long 数据类型Object 数据类型 Single 数据类型 String 数据类型用户定义数据类型Variant 数据类型#Const 指令#If.Then.#Else 指令 Abs(number)Array(arglist)Asc(string)Atn(number)CallByName(object,procedurename,calltype,argume

13、nts()Choose(index,choice-1,choice-2,.,choice-n)Chr(charcode)CommandCos(number)CreateObject(class,servername)CurDir(drive)CVErr(errornumber)Date DateAdd(interval,number,date)DateDiff(interval,date1,date2,firstdayofweek,firstweekofyear)DatePart(interval,date,firstdayofweek,firstweekofyear)DateSerial(y

14、ear,month,day)DateValue(date)Day(date)DDB(cost,salvage,life,period,factor)Dir(pathname,attributes)DoEvents()Environ(envstring|number)EOF(filenumber)Error(errornumber)Exp(number)FileAttr(filenumber,returntype)FileDateTime(pathname)FileLen(pathname)Filter(InputStrings,Value,Include,Compare)Format(expr

15、ession,format,firstdayofweek,firstweekofyear)FormatCurrency(Expression,NumDigitsAfterDecimal ,IncludeLeadingDigit,UseParensForNegativeNumbers ,GroupDigits)FormatDateTime(Date,NamedFormat)FormatPercent(Expression,NumDigitsAfterDecimal ,IncludeLeadingDigit,UseParensForNegativeNumbers ,GroupDigits)Free

16、File(rangenumber)FV(rate,nper,pmt,pv,type)GetAllSettings(appname,section)GetAttr(pathname)GetObject(pathname ,class)GetSetting(appname,section,key,default)Hex(number)Hour(time)IIf(expr,truepart,falsepart)IMEStatus Input(number,#filenumber)InputBox(prompt,title,default,xpos,ypos,helpfile,context)InSt

17、r(start,string1,string2,compare)InstrRev(string1,string2,start,compare)Int(number)Fix(number)IPmt(rate,per,nper,pv,fv,type)IRR(values(),guess)IsArray(varname)IsDate(expression)IsEmpty(expression)IsError(expression)IsMissing(argname)IsNull(expression)IsNumeric(expression)IsObject(identifier)Join(list

18、,delimiter)LBound(arrayname,dimension)LCase(string)Left(string,length)Len(string|varname)Loc(filenumber)LOF(filenumber)Log(number)LTrim(string)RTrim(string)Trim(string)Mid(string,start,length)Minute(time)MIRR(values(),finance_rate,reinvest_rate)Month(date)MonthName(month,abbreviate)MsgBox(prompt,but

19、tons,title,helpfile,context)Now NPer(rate,pmt,pv,fv,type)NPV(rate,values()Oct(number)Partition(number,start,stop,interval)Pmt(rate,nper,pv,fv,type)PPmt(rate,per,nper,pv,fv,type)PV(rate,nper,pmt,fv,type)QBColor(color)Rate(nper,pmt,pv,fv,type,guess)Replace(expression,find,replacewith,start,count,compa

20、re)RGB(red,green,blue)Right(string,length)Rnd(number)Round(expression ,numdecimalplaces)Second(time)Seek(filenumber)Sgn(number)Shell(pathname,windowstyle)Sin(number)SLN(cost,salvage,life)Space(number)Spc(n)Split(expression,delimiter,count,compare)Sqr(number)Str(number)StrComp(string1,string2,compare

21、)StrConv(string,conversion,LCID)StrReverse(string1)String(number,character)Switch(expr-1,value-1,expr-2,value-2 _,expr-n,value-n)SYD(cost,salvage,life,period)Tab(n)Tan(number)TimeTimer TimeSerial(hour,minute,second)TimeValue(time)CBool(expression)CByte(expression)CCur(expression)CDate(expression)CDb

22、l(expression)CDec(expression)CInt(expression)CLng(expression)CSng(expression)CStr(expression)CVar(expression)CStr(expression)TypeName(varname)UBound(arrayname,dimension)UCase(string)VarType(varname)Weekday(date,firstdayofweek)WeekdayName(weekday,abbreviate,firstdayofweek)Year(date)数据类型概述:Byte Boolea

23、n Integer Long Single Double Currency Decimal Date Object String String Variant Variant Type 导出的数学函数:Secant Cosecant Cotangent Inverse Sine Inverse Cosine Inverse Secant Inverse CosecantInverse Cotangent Hyperbolic Sine Hyperbolic Cosine Hyperbolic Tangent Hyperbolic Secant Hyperbolic Cosecant Hyper

24、bolic Cotangent Inverse Hyperbolic Sine Inverse Hyperbolic Cosine nverse Hyperbolic Tangent Inverse Hyperbolic Secant Inverse Hyperbolic Cosecant nverse Hyperbolic Cotangent 逻辑运算符:And Eqv Imp Not Or Xor 数学函数:Abs Atn Cos Exp Fix Int Log Rnd Sgn Sin Sqr Sqr 运算符优先顺序:-(*、/)Mod (+、-)&=Like Not And Or Xor

25、 Eqv Imp Is 数组关键字总结:IsArray Array Option Base Dim,Private,Public,ReDim,Static LBound,Ubound Erase,ReDim Collection 对象关键字总结:IsArray Array Option Base Dim,Private,Public,ReDim,Static LBound,Ubound Erase,ReDim 编译命令关键字总结:#Const#If.Then.#Else 控制流关键字总结:GoSub.Return,GoTo,On Error,On.GoSub,On.GoTo DoEvents,

26、End,Exit,Stop Do.Loop For.Next,For Each.Next,While.Wend,WithChoose,If.Then.Else,Select Case,Switch Call,Function,Property Get,Property Let,Property Set,Sub 变换关键字总结:Chr Format,LCase,UCase DateSerial,DateValue Hex,Oct Format,Str CBool,CByte,CCur,CDate,CDbl,CDec,CInt,CLng,CSng,CStr,CVar,CVErr,Fix,Int D

27、ay,Month,Weekday,Year Hour,Minute,Second Asc Val TimeSerial,TimeValue 数据类型关键字总结:CBool,CByte,CCur,CDate,CDbl,CDec,CInt,CLng,CSng,CStr,CVar,CVErr,Fix,Int Boolean,Byte,Currency,Date,Double,Integer,Long,Obect,Single,String,Variant(default)IsArray,IsDate,IsEmpty,IsError,IsMissing,IsNull,IsNumeric,IsObjec

28、t 日期与时间关键字总:Date,Now,Time DateAdd,DateDiff,DatePart DateSerial,DateValue TimeSerial,TimeValue Date,Time Timer 目录和文件关键字总结:ChDir ChDrive FileCopy MkDir RmDir Name CurDir FileDateTime GetAttr FileLen Dir SetAttr 错误关键字总结:Clear,Error,Raise Error Err CVErr On Error,Resume IsError 金融关键字总结:DDB,SLN,SYD FV Ra

29、te IRR,MIRR NPer IPmt,Pmt,PPmt NPV,PV 输入与输出关键字总结:DDB,SLN,SYD FV Rate IRR,MIRR NPer IPmt,Pmt,PPmt NPV,PV 数学关键字总结:Atn,Cos,Sin,Tan Exp,Log,Sqr Randomize,Rnd Abs Sgn Fix,Int 其他关键字总结:DoEvents AppActivate,Shell SendKeys Beep Environ Command MacID,MacScript CreateObject,GetObject QBColor,RGB 运算符关键字总结:DoEve

30、nts AppActivate,Shell SendKeys Beep Environ Command MacID,MacScript CreateObject,GetObject QBColor,RGB 注册关键字总结:DoEvents AppActivate,Shell SendKeys Beep Environ Command MacID,MacScript CreateObject,GetObject QBColor,RGB 字符串处理关键字总结:StrComp StrConv Format,LCase,UCaseSpace,String Len Format LSet,RSet In

31、Str,Left,LTrim,Mid,Right,RTrim,Trim Option Compare Asc,Chr 变量与常数关键字总结:Let Const,Dim,Private,Public,New,Static Option Private Module IsArray,IsDate,IsEmpty,IsError,IsMissing,IsNull,IsNumeric,IsObject,TypeName,VarType Me Option Explicit Deftype As:Const 语句 Declare 语句 Dim 语句 Function 语句 Name 语句Open 语句

32、Private 语句 Property Get 语句 Property Let 语句Property Set 语句 Public 语句 ReDim 语句 Static 语句Sub 语句 Type 语句Binary:Open 语句 Option Compare 语句ByRef:Call 语句 Declare 语句 Function 语句 Property Get 语句Property Let 语句 Property Set 语句 Sub 语句ByVal:Call 语句 Declare 语句 Function 语句 Property Get 语句Property Let 语句 Property S

33、et 语句 Sub 语句Date:Date 数据类型 Date 函数 Date 语句Else:If.Then.Else 语句 Select Case 语句Empty:Empty 关键字是用作 Variant 子类型。它表示未初始化的变量值。Error:Error 函数 Error 语句 On Error 语句False:False 关键字的值等于 0。For:For.Next 语句 For Each.Next 语句 Open 语句Friend:Private|Friend|Public Static Sub|Function|Property procedurenameGet:Get 语句 P

34、roperty Get 语句Input:Input 函数 Input#语句 Line Input#语句 Open 语句Is:If.Then.Else 语句 Is 运算子 Select Case 语句Len:Len 函数 Open 语句Let:Let 语句 Property Let 语句Lock:Lock、Unlock 语句 s Open 语句Me:Me 关键字像是隐含声明的变量。Me 在代码正在执行的地方提供引用具体实例的方法。Mid:Mid 函数 Mid 语句New:Dim 语句 Private 语句 Public 语句 Set 语句 Static 语句Next:For.Next 语句 Fo

35、r Each.Next 语句 On Error 语句 Resume 语句Nothing:使用 Nothing关键字被将对象变量从实际对象中分离开来。Null:Null 关键字被用来作为 Variant 子类型。它说明变量不包含有效数据。On:On Error 语句 On.GoSub 语句 On.GoTo 语句Option:Option Base 语句 Option Compare 语句 Option Explicit 语句Option Private 语句Optional:Declare 语句 Function 语句 Property Get 语句Property Let 语句 Propert

36、y Set 语句 Sub 语句ParamArray:Declare 语句 Function 语句 Sub 语句Print:Print 方法 Print#语句Private:Const 语句 Declare 语句 Enum 语句 Function 语句Option Private 语句 Private 语句 Property Get 语句Property Let 语句 Property Set 语句 Sub 语句 Type 语句Property:Property Get 语句 Property Let 语句 Property Set 语句Public:Const 语句 Declare 语句 En

37、um 语句 Event 语句Function 语句 Property Get 语句 Property Let 语句Property Set 语句 Public 语句 Sub 语句 Type 语句Resume:On Error 语句 Resume 语句Seek:Seek 函数 Seek 语句Set:Set 语句 Property Set 语句Static:Function 语句 Property Get 语句 Property Let 语句Property Set 语句 Static 语句 Sub 语句Step:For.Next 语句 For Each.Next 语句String:String

38、数据类型 String 函数Then:#If.Then.#Else 命令 If.Then.Else 语句Time:Time 函数 Time 语句To:Dim 语句 For.Next 语句 Lock、Unlock 语句 s Private 语句Public 语句 ReDim 语句 Select Case 语句Static 语句 Type 语句True:True关键字的值等于-1。WithEvents:Dim 语句 Private 语句 Public 语句Add 方法:object.Add item,key,before,afterAdd 方法(Dictionary):object.Addkey,

39、itemAdd 方法(Folder):object.AddFoldersfolderName Assert 方法:object.AssertbooleanexpressionBuildPath 方法:object.BuildPath(path,name)Clear 方法:object.ClearClose 方法:object.CloseCopy 方法:object.Copydestination,overwrite CopyFile 方法:object.CopyFilesource,destination,overwrite CopyFolder 方法object.CopyFoldersour

40、ce,destination,overwrite CreateFolder 方法:object.CreateFolder(foldername)CreateTextFile 方法:object.CreateTextFile(filename,overwrite,unicode)Delete 方法:object.DeleteforceDeleteFile 方法:object.DeleteFilefilespec,force DeleteFolder 方法:object.DeleteFolderfolderspec,force DriveExists 方法:object.DriveExists(d

41、rivespec)Exists 方法:object.Exists(key)FileExists 方法:object.FileExists(filespec)FolderExists 方法:object.FolderExists(folderspec)GetAbsolutePathName 方法:object.GetAbsolutePathName(pathspec)GetBaseName 方法:object.GetBaseName(path)GetDrive 方法:object.GetDrivedrivespecGetDriveName 方法:object.GetDriveName(path)

42、GetExtensionName 方法:object.GetExtensionName(path)GetFile 方法:object.GetFile(filespec)GetFileName 方法:object.GetFileName(pathspec)GetFolder 方法:object.GetFolder(folderspec)GetParentFolderName 方法:object.GetParentFolderName(path)GetSpecialFolder 方法:object.GetSpecialFolder(folderspec)GetTempName 方法:object.

43、GetTempNameItem 方法:object.Item(index)Items 方法:object.ItemsKeys 方法:object.KeysMove 方法:object.MovedestinationMoveFile 方法:object.MoveFilesource,destinationMoveFolder 方法:object.MoveFoldersource,destinationOpenAsTextStream 方法:object.OpenAsTextStream(iomode,format)OpenTextFile 方法:object.OpenTextFile(filen

44、ame,iomode,create,format)Print 方法:object.Print outputlist Raise 方法:object.Raise number,source,description,helpfile,helpcontextRead 方法:object.Read(characters)ReadAll 方法:object.ReadAllReadLine 方法:object.ReadLineRemove 方法:object.Remove indexRemove 方法:object.Remove(key)RemoveAll 方法:object.RemoveAllSkip

45、方法:object.Skip(characters)SkipLine 方法:object.SkipLineWrite 方法:object.Write(string)WriteBlankLines 方法:object.WriteBlankLines(lines)WriteLine 方法:object.WriteLine(string)Collection 对象 Debug 对象 Dictionary 对象 Drive 对象 Drives 集合Err 对象 File 对象 Files 集合 FileSystemObject 对象 Folder 对象Folders 集合 TextStream 对象&

46、运算符:result=expression1&expression2*运算符:result=number1*number2+运算符:result=expression1+expression2-运算符:result=number1-number2 -number/运算符:result=number1/number2 运算符:result=number1 number2运算符:result=numberexponent=操作符:variable=valueAddressOf 运算符:AddressOf procedurenameAnd 运算符:result=expression1Andexpre

47、ssion2比较运算符:result=expression1comparisonoperatorexpression2result=object1 Is object2result=stringLikepatternEqv 运算符:result=expression1Eqvexpression2Imp 运算符:result=expression1Impexpression2Is 运算符:result=object1Isobject2Like 运算符:result=stringLikepatternMod 运算符:result=number1Modnumber2Not 运算符:result=No

48、texpressionOr 运算符:result=expression1Orexpression2Xor 运算符:result=expression1Xorexpression2AtEndOfLine 属性:object.AtEndOfLineAtEndOfStream 属性:object.AtEndOfStreamAttributes 属性:object.Attributes=newattributes AvailableSpace 属性:object.AvailableSpaceCalendar 属性:Column 属性:object.ColumnCompareMode 属性:object

49、.CompareMode =compare Count 属性Count 属性:object.CountDateCreated 属性:object.DateCreatedDateLastAccessed 属性:object.DateLastAccessedDateLastModified 属性:object.DateLastModifiedDescription 属性Drive 属性:object.DriveDriveLetter 属性:object.DriveLetterDrives 属性:object.DrivesDriveType 属性:object.DriveTypeFiles 属性:o

50、bject.FilesFileSystem 属性:object.FileSystemFreeSpace 属性:object.FreeSpaceHelpContext 属性:HelpFile 属性IsReady 属性 object.IsReadyIsRootFolder 属性:object.IsRootFolderItem 属性:object.Item(key)=newitem Key 属性:object.Key(key)=newkeyLastDLLError 属性Line 属性:object.LineName 属性:object.Name =newname Number 属性:ParentFo

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 技术资料 > 实施方案

本站为文档C TO C交易模式,本站只提供存储空间、用户上传的文档直接被用户下载,本站只是中间服务平台,本站所有文档下载所得的收益归上传人(含作者)所有。本站仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。若文档所含内容侵犯了您的版权或隐私,请立即通知淘文阁网,我们立即给予删除!客服QQ:136780468 微信:18945177775 电话:18904686070

工信部备案号:黑ICP备15003705号© 2020-2023 www.taowenge.com 淘文阁