Le tableau ci-dessous récapitule les catégories BSL prises en charge et les mots-clés associés.
Tableau 11-1 BSL : catégories et mots-clés
| Catégorie | Mots-clés |
|---|---|
| Gestion des tableaux | Array, Dim, Private, Public, ReDim, IsArray, Erase, LBound, UBound |
| Affectations | Set |
| Commentaires | Commentaires avec une apostrophe (') |
| Constantes et valeurs littérales | Empty, Nothing, Null, True, False |
| Flux de contrôle | 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 et heure | Date, Time, DateAdd, DateDiff, DatePart, DateSerial, Day, Month, Year, Hour, Minute, Second, Now, MonthName |
| Déclarations | Const, Dim, Private, Public, ReDim, Function, Sub, Class |
| Gestion des erreurs | On Error, Err |
| Expressions | |
| Chaînes de formatage | FormatDateTime, FormatNumber |
| Valeurs littérales | Empty, False, Nothing, Null, True |
| Mathématique | Sqr, Rnd |
| Objets | CreateObject, Err, RegExp, ArrayList, Dictionary, ADODB.Connection, ADODB.RecordSet, File Stream, File, Text Stream, WShell |
| Opérateurs | Addition (+), Soustraction (-), Exponentiation (^), Arithmétique modulaire (Mod), Multiplication (*), Division (/), Division entière (\), Négation (-), Concaténation de chaînes (&), Egalité (=), Inégalité (<>), Inférieur à (<), Inférieur ou égal à (<=), Supérieur à (>), Supérieur ou égal à (>=), And, Or, Xor |
| Options | Option Explicit |
| Procédures | Call, Function, Sub |
| Arrondi | Abs, Int, Fix, Round |
| Chaînes | Asc, Chr, Filter, InStr, InStrRev, Join, Len, LCase, UCase, Left, Mid, Right, Replace, Space, Split, StrComp, String, StrReverse, LTrim, RTrim, Trim |
| Variantes | IsArray, IsDate, IsEmpty, IsNull, IsNumeric |