Variables, Using and naming variables, Character string variables – Visara Master Console Center Scripting Guide User Manual
Page 36
Chapter 3 Script Syntax
Scripting Guide
36
Variables
Using and Naming Variables
Variables may be character strings, numerics, or arrays; arrays may
be strings or integers. The first character of a variable name must be
a letter.
A variable name can contain letters, numbers, and underscores.
A variable name may not contain a dash.
All variable names are prefixed with a special character denoting its
type:
$ string
% integer
The variable name’s maximum length is 255 characters.
The scope of all variables is local to the script in which they are used.
Declaring variables is not necessary—they are allocated dynamically.
“Deallocation” of variables is not necessary—they are automatically
and properly deallocated when a script ends execution.
Character String Variables
Character string variable names are prefixed with a dollar sign “$”.
The maximum number of characters per character string is limited
only by available memory.
Strings are automatically initialized to “” (empty string).
String concatenation is allowed with the + operator.
String literals can be delimited by single or double quotes. For
example:
$VarName
$ScanText := “IEF”
$ScanText := ‘IEF’
$All := $First + $Second