VBS actually has two types of identifiers:
Generic identifier (Normalidentifier)
Bracket identifier (bracketidentifier)
But all the VBS books I've seen are just plain identifiers, without the bracket identifiers.
Rules for common identifiers we are already familiar with:
The first character must be a letter.
The characters that follow can be letters, numbers, and underscores (_)
Length cannot exceed 255 characters
Cannot be a key reserved by the VBS
The rules for the bracket identifiers are simpler:
Any Unicode character enclosed in brackets (except for newline, carriage return, and null)
Length cannot exceed 255 characters (excluding brackets)
With the bracket identifier, you can use any character to make the variable name, including the VBS reserved word
Copy Code code as follows:
Dim [if],[Nickname]
[If] = "Hello World"
[Nickname] = "Demon"
WScript.Echo [If]
WScript.Echo [Nickname]
When you give a variable or function a name, you can use Chinese, which looks pretty good.
Reference Links: VBScript trivia:bracket Identifiers and Reserved Word incompatibilities
Original: http://demon.tw/programming/vbs-identifiers.html