BSL Features
The table below summarizes the supported BSL categories and their associated keywords.
Table 11-1 BSL: Categories and Keywords
| Category | Keywords |
|---|---|
| Array Handling | Array, Dim, Private, Public, ReDim, IsArray, Erase, LBound, UBound |
| Assignments | Set |
| Comments | Comments using apostrophe (')
|
| Constants and Literals | Empty, Nothing, Null, True, False |
| Control Flow | Do…Loop, For…Next, For Each…Next, If…Then…Else…End If, Select Case, While…Wend, With…End With |
| Conversions | Abs, Asc, Chr, CBool, CByte, CDate, CDbl, CInt, CLng, CStr, DateSerial, Fix, Int, Sgn |
| Date and Time | Date, Time, DateAdd, DateDiff, DatePart, DateSerial, Day, Month, Year, Hour, Minute, Second, Now, MonthName |
| Declarations | Const, Dim, Private, Public, ReDim, Function, Sub, Class |
| Error Handling | On Error, Err |
| Expressions | |
| Formatting Strings | FormatDateTime, FormatNumber |
| Literals | Empty, False, Nothing, Null, True |
| Math | Sqr, Rnd |
| Objects | CreateObject, Err, RegExp, ArrayList, Dictionary, ADODB.Connection, ADODB.RecordSet, FileSystemObject, File, TextStream, WShell |
| Operators | Addition (+), Subtraction
(-),Exponentiation (^), Modulus
arithmetic (Mod), Multiplication
(*), Division (/),Integer
Division (\), Negation (-), String
concatenation (&), Equality
(=), Inequality (<>),Less Than
(<), Less Than or Equal To
(<=),Greater Than (>),
Greater Than or Equal To (>=),
And, Or, Xor
|
| Options | Option Explicit |
| Procedures | Call, Function, Sub |
| Rounding | Abs, Int, Fix, Round |
| Strings | Asc, Chr, Filter, InStr, InStrRev, Join, Len, LCase, UCase, Left, Mid, Right, Replace, Space, Split, StrComp, String, StrReverse, LTrim, RTrim, Trim |
| Variants | IsArray, IsDate, IsEmpty, IsNull, IsNumeric |