Go to documentation repository
...
| Note | ||
|---|---|---|
| ||
| The Int_var method uses the same storage as the Itv_var method, but modify modifies the type of variable to the integer type. |
Method call syntaxSyntax for method invocation:
| Code Block |
|---|
function Int_var (globalvar : String) : int |
...
...
...
...
| Info | ||
|---|---|---|
| ||
| Global variables are stored in the system registry to maintain their values after Windows restart. All global variables are stored in the registry branch HKEY_USERS\S-1-5-21-…\Software\VMSScript\VMSSCRIPT and HKEY_CURRENT_USER\Software\VMSScript\VMSSCRIPT. To access a global variable directly from the registry, search the registry for it by the same its name. |
Usage examples
To Example. In the test example below, to check the method operation in the following test example the value 1 sets to the "2" global variable and then increases per 1 and displays on the script debug window, the global variable named 2 is assigned a value of 1 that is then increases by 1 and is displayed in the debug window of the script.
| Code Block | ||
|---|---|---|
| ||
if(Event.Action =="RUN")
{
Int_var(2) = 1;
Int_var("2")++;
DebugLogString(Int_var("2").toString());
} |
...