@GetVar
Syntax
@GetVar(NAME1;GROUP2);
@GetVar(NAME1);
Description
Returns the value of the variable named TEXT NAME1 . If the variable belongs to a group (e.g. a document), the group name (e.g. the NOTEHANDLE of the document) as TEXT GROUP2 must be specified. This enables an alternative way of accessing variables.
NOTE:
If a variable does not exist, @GetVar @ERROR INVALID Variable-Name @GetVar is returned.
If a variable has been deleted, @GetVar returns a variable of data type PV.
Example: @GetVar(NAME1)
VAR1:="TEST";
NAME1:="VAR1";
@GetVar(NAME1);
returns "TEST"
Example: @GetVar(NAME1;GROUP2)
DBHANDLE:=@OpenDB("TEST.NSF");
NOTEHANDLE1:=@OpenNoteByID(DBHANDLE;37386;NOTEHANDLE1);
@LogReport(@GetVar("Form";"NOTEHANDLE1"));
NOTEHANDLE1:=@CloseNote(NOTEHANDLE1;0);
DBHANDLE:=@CloseDB(DBHANDLE);
returns the form name of the document with ID 37386 in "TEST.NSF"
Note : This text was machine-translated and may contain inaccuracies.
