Go to documentation repository
Page History
The Int_var method sets and returns values of global variables of integer type.
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 |
Method arguments:
- globalvar – Globalvar is a required argument. The It specifies the name of the global variable. It takes the following Possible values: type – String, satisfying the rules for the names of the string parameters in the String type that meets the requirements for valid names of String parameters of the Windows registry.
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\ITVScriptVMSScript\ITVSCRIPT VMSSCRIPT and HKEY_CURRENT_USER\Software\ITVScriptVMSScript\ ITVSCRIPTVMSSCRIPT. 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()); } |
...
Overview
Content Tools