• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Part III: Appendixes > Data Types and Variables

Data Types and Variables

VBScript variable names may have up to 255 characters, must begin with a letter, must not contain blanks, periods, or punctuation characters, and must not be one of the reserved language keywords, such as public or while.

In VBScript, all variables are of type Variant. A Variant may hold integers, floating-point numbers, dates, times, date-times, strings, Boolean values, and object references. When Variants are combined in expressions, VBScript attempts to interpret them in such a way as to make the expression sensible. For example, when you combine a numeric Variant and a string Variant with the string concatenation operator (&), VBScript automatically converts the number to a string. When combining numeric and string Variants with the numeric operators, VBScript attempts to convert the string to a number.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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