vbscript 特性
| 类别 |
关键字 |
| 数组处理 |
array
dim, private, public, redim
isarray
erase
lbound, ubound |
| 赋值 |
set |
| 程序注释 |
使用 ' 或 rem 的程序注释 |
| 常数/文字 |
empty
nothing
null
true, false |
| 控制流程 |
do...loop
for...next
for each...next
if...then...else
select case
while...wend
with |
| 转换 |
abs
asc, ascb, ascw
chr, chrb, chrw
cbool, cbyte
ccur, cdate
cdbl, cint
clng, csng, cstr
dateserial, datevalue
hex, oct
fix, int
sgn
timeserial, timevalue |
| 日期/时间 |
date, time
dateadd, datediff, datepart
dateserial, datevalue
day, month, monthname
weekday, weekdayname, year
hour, minute, second
now
timeserial, timevalue |
| 声明 |
class
const
dim, private, public, redim
函数, sub
属性 get, 属性 let, 属性 set |
| 错误处理 |
on error
err |
| 表达式 |
eval
execute
regexp
replace
test |
| 格式化字符串 |
formatcurrency
formatdatetime
formatnumber
formatpercent |
| 输入/输出 |
inputbox
loadpicture
msgbox |
| 文字 |
empty
false
nothing
null
true |
| 数学 |
atn, cos, sin, tan
exp, log, sqr
randomize, rnd |
| 杂类 |
eval 函数
execute 语句
rgb 函数 |
| 对象 |
create对象
err 对象
get对象
regexp |
| 运算符 |
加法 (+),减法 (-)
幂(^)
求余算术运算 (mod)
乘法 (*)、除法(/)
整除(\)
求补(-)
字符串连接(&)
is
and, or, xor
eqv, imp |
| 选项 |
option explicit |
| 过程 |
call
函数, sub
属性 get, 属性 let, 属性 set |
| 四舍五入 |
abs
int, fix, round
sgn |
| script 引擎 id |
scriptengine
scriptenginebuildversion
scriptenginemajorversion
scriptengineminorverion |
| 字符串 |
asc, ascb, ascw
chr, chrb, chrw
filter, instr, instrb
instrrev
join
len, lenb
lcase, ucase
left, leftb
mid, midb
right, rightb
replace
space
split
strcomp
string
strreverse
ltrim, rtrim, trim |
| 变量 |
isarray
isdate
isempty
isnull
isnumeric
is对象
typename
vartype |
|