VBS variable names and identifiers of presentation (rpm)

Identifier may simply think that is the class name, variable and procedure names.

VBS In fact, there are two identifiers:

  1. Ordinary identifier (NORMALIDENTIFIER)
  2. Brackets identifier (BRACKETIDENTIFIER)

But I've seen on the VBS books talk about a common identifier, did not say in parenthesis identifier.

Rules common identifiers that we are already familiar:

  • The first character must be a letter.
  • Subsequent characters can be letters, numbers, and the underscore (_)
  • Not be longer than 255 characters
  • VBS is not reserved keyword

Rule identifiers in parentheses simpler:

  • Any Unicode characters parenthesized (line feed, carriage return, and except NULL)
  • Not be longer than 255 characters (which can be 0, not including brackets)

With brackets identifier, it can be done with any character variable names, including VBS reserved words

Dim [if], [nickname] 
[IF] = "the Hello World" 
[Nickname] = "Demon" 
WScript.Echo [IF] 
WScript.Echo [nickname]

This time to a variable or function name on it in Chinese, and looks relatively fast hardware.

 

http://demon.tw/programming/vbs-identifiers.html

Reproduced in: https: //www.cnblogs.com/alterhu/archive/2012/04/08/2438120.html

Guess you like

Origin blog.csdn.net/weixin_34006965/article/details/94029525