BSL 功能

下表汇总了支持的 BSL 类别及其关联的关键字。

表 11-1 BSL:类别和关键字

类别 关键字
数组处理 Array、Dim、Private、Public、ReDim、IsArray、Erase、LBound、UBound
赋值 Set
注释 使用撇号 (') 的注释
常量和文字 Empty、Nothing、Null、True、False
控制流 Do…Loop、For…Next、For Each…Next、If…Then…Else…End If、Select Case、While…Wend、With…End With
转换 Abs、Asc、Chr、CBool、CByte、CDate、CDbl、CInt、CLng、CStr、DateSerial、Fix、Int、Sgn
日期和时间 Date、Time、DateAdd、DateDiff、DatePart、DateSerial、Day、Month、Year、Hour、Minute、Second、Now、MonthName
声明 Const、Dim、Private、Public、ReDim、Function、Sub、Class
错误处理 On Error、Err
表达式  
格式设置字符串 FormatDateTime、FormatNumber
文字 Empty、False、Nothing、Null、True
数学 Sqr、Rnd
对象 CreateObject、Err Object、RegExp、ArrayList、Dictionary、ADODB.Connection、ADODB.RecordSet、File Stream、File Object、Text Stream、WShell
运算符 加法 (+)、减法 (-)、求幂 (^)、模运算 (Mod)、乘法 (*)、除法 (/)、整数除法 (\)、取反 (-)、字符串串联 (&)、相等 (=)、不相等 (<>)、小于 (<)、小于或等于 (<=)、大于 (>)、大于或等于 (>=)、AndOrXor
选项 Option Explicit
过程 Call、Function、Sub
舍入 Abs、Int、Fix、Round
字符串 Asc、Chr、Filter、InStr、InStrRev、Join、Len、LCase、UCase、Left、Mid、Right、Replace、Space、Split、StrComp、String、StrReverse、LTrim、RTrim、Trim
变体 IsArray、IsDate、IsEmpty、IsNull、IsNumeric