• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

VBScript Identifiers

An identifier is a unique name that VBScript uses to identify a variable, method, or object in your program. As with other programming languages, VBScript imposes some rules on what names you can use. All VBScript names must start with an alphabetic character, and they can contain both uppercase and lowercase letters and the digits 0 through 9. They can be as long as 255 characters, although you probably don't want to go much more than 32 or so for readability's sake.

Unlike JavaScript, which supports two ways for you to represent values in your scripts (literals and variables), VBScript has only variables. The difference in VBScript, therefore, is one of usage. If you want to use a constant value in your VBScript programs, set a variable equal to a value and don't change it. This discussion continues to refer to literals and variables as distinct entities, although they are interchangeable.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint