Declare a variable before using it in a script and declare a variable before assigning a value to it.
To declare script variables, use the DIM keyword.
The basic types of variables and their default values are as follows:
unsigned char (False)
long (0)
char * ("")
wchar_t (0)
unsigned char (0)
unsigned short (0)
short (0)
Examples:
DIM MyIntegerVar as Integer DIM MyStringVar as String MyIntegerVar = 1234 MyStringVar = "This is a string." DIM C1, C2, C3 as Char C1 = 0x61 C2 = 0x0061 C3 = "a" rem C1, C2, C3 - all the same character
|
Copyright © 2014 CA Technologies.
All rights reserved.
|
|