跳到内容(1) Cob.com.cn

教程·VBScript中文手册

您的位置:首页>>教程>>VBScript手册

VBScript 语言参考

Visual Basic Scripting Edition

VBScript 用户手册

什么是 VBScript?在 HTML 页面中添加 VBScript 代码VBScript基础VBScript 数据类型VBScript 变量VBScript 常数VBScript 运算符使用条件语句使用循环语句VBScript 过程VBScript 编码约定

IE中的 VBScript

VBScript 页面的简单样例VBScript 与窗体在 VBScript 中使用对象

语言参考

VBScript 特性未包含在 Visual Basic for Applications 中的 VBScript 特性未包含在 VBScript 中的 Visual Basic for Applications 特性VBScript 常数

颜色常数

比较常数日期和时间常数日期格式常数其他常数MsgBox 常数字符串常数三态常数VarType 常数VBScript 常数

VBScript 错误

VBScript 运行时错误VBScript 语法错误

VBScript 事件

Initialize 事件Terminate 事件

VBScript 函数

Abs 函数Array 函数Asc 函数Atn 函数

CBool 函数CByte 函数CCur 函数CDate 函数CDbl 函数Chr 函数CInt 函数CLng 函数转换函数Cos 函数CreateObject 函数CSng 函数CStr 函数

Date 函数DateAdd 函数DateDiff 函数DatePart 函数DateSerial 函数DateValue 函数Day 函数派生数学函数

Eval 函数Exp 函数

Filter 函数FormatCurrency 函数FormatDateTime 函数FormatNumber 函数FormatPercent 函数

GetLocale 函数GetObject 函数GetRef 函数

Hex 函数Hour 函数

InputBox 函数InStr 函数InStrRev 函数Int、Fix 函数IsArray 函数IsDate 函数IsEmpty 函数IsNull 函数IsNumeric 函数IsObject 函数

Join 函数

LBound 函数LCase 函数Left 函数Len 函数LoadPicture 函数Log 函数LTrim、RTrim 和 Trim 函数数学函数

Mid 函数Minute 函数Month 函数MonthName 函数MsgBox 函数

Now 函数

Oct 函数

Replace 函数RGB 函数Right 函数Rnd 函数Round 函数ScriptEngine 函数Microsoft(R) Visual Basic(R) Scripting EditionScriptEngineMajorVersion 函数ScriptEngineMinorVersion 函数Second 函数SetLocale 函数Sgn 函数Sin 函数Space 函数Split 函数Sqr 函数StrComp 函数String 函数

StrReverse 函数

Tan 函数Time 函数Timer 函数TimeSerial 函数TimeValue 函数TypeName 函数

UBound 函数UCase 函数

VarType 函数

Weekday 函数WeekDayName 函数

Year 函数

VBScript 关键字

EmptyFalseNothingNullTrue

VBScript 方法

Clear 方法Execute 方法Raise 方法Replace 方法Test 方法

杂项

字符集 (0 - 127)字符集 (128 - 255)区域设置 ID (LCID) 表

VBScript 对象

Class 对象Err 对象Match 对象Matches 集合正则表达式(RegExp)对象

VBScript 运算符

运算符(+)And 运算符算术运算符赋值运算符赋值运算符 (=)比较运算符连接运算符 (&)连接运算符除运算符 (/)Eqv 运算符幂运算符 (^)Imp 运算符\ 运算符Is 运算符逻辑运算符Mod 运算符乘运算符 (*)Not 运算符运算符优先级运算符概述Or 运算符减运算符 (-)Xor 运算符

VBScript 属性

Description 属性FirstIndex 属性Global 属性HelpContext 属性HelpFile 属性IgnoreCase 属性Length 属性Number 属性Pattern 属性Source 属性Value 属性

VBScript 语句

Call 语句Class 语句Const 语句

Dim 语句Do...Loop 语句

Erase 语句Execute 语句ExecuteGlobal 语句

Exit 语句For Each...Next 语句For...Next 语句Function 语句

If...Then...Else 语句

On Error 语句Option Explicit 语句

Private 语句Property Get 语句Property Let 语句Property Set 语句Public 语句

Randomize 语句ReDim 语句Rem 语句

Select Case 语句Set 语句Sub 语句

While...Wend 语句With 语句

FileSystemObject 用户指南

FileSystemObject 对象模型FileSystemObject 和 Scripting 运行时库参考的介绍FileSystemObject 对象设计 FileSystemObject处理驱动器和文件夹处理文件FileSystemObject 示例代码

Scripting 运行时库参考

Microsoft Scripting 运行时库特性

常数

DriveType 常数文件属性常数文件输入/输出常数FileSystemObject 常数SpecialFolder 常数

方法

Add 方法(Dictionary)AddFolders 方法(Folders)

BuildPath 方法

Close 方法Copy 方法CopyFile 方法CopyFolder 方法CreateFolder 方法CreateTextFile 方法

Delete 方法DeleteFile 方法DeleteFolder 方法DriveExists 方法

Exists 方法

FileExists 方法FolderExists 方法

GetAbsolutePathName 方法GetBaseName 方法GetDrive 方法GetDriveName 方法GetExtensionName 方法GetFile 方法GetFileName 方法GetFolder 方法GetParentFolderName 方法GetSpecialFolder 方法GetTempName 方法

Items 方法Keys 方法

Move 方法MoveFile 方法MoveFolder 方法

OpenAsTextStream 方法OpenTextFile 方法

Read 方法ReadAll 方法ReadLine 方法Remove 方法

Skip 方法SkipLine 方法

Write 方法WriteBlankLines 方法WriteLine 方法

对象

Dictionary 对象Drive 对象Drives 集合File 对象Files 集合FileSystemObject 对象Folder 对象Folders 集合

属性

AtEndOfLine 属性AtEndOfStream 属性Attributes 属性AvailableSpace 属性

Column 属性CompareMode 属性Count 属性

DateCreated 属性DateLastAccessed 属性DateLastModified 属性Drive 属性DriveLetter 属性Drives 属性DriveType 属性

Files 属性FileSystem 属性FreeSpace 属性

IsReady 属性IsRootFolder 属性Item 属性Key 属性Line 属性

Name 属性

ParentFolder 属性Path 属性

RootFolder 属性

SerialNumber 属性ShareName 属性ShortName 属性ShortPath 属性Size 属性SubFolders 属性

TotalSize 属性Type 属性

VolumeName 属性

正则表达式简介

正则表达式早期起源使用正则表达式正则表达式语法

建立正则表达式优先权顺序普通字符特殊字符非打印字符字符匹配限定符定位符选择和编组后向引用

End Nav