@SetVar
Syntax
@SetVar(NAME1;GROUP2;VAR3);
@SetVar(NAME1;VAR3);
Description
Sets the value of the variable(s) named TEXT/TEXTLIST NAME1 to the value VAR3. If the variable belongs to a group, for example a document, the group name, for example the NOTEHANDLE of the document, must be specified as TEXT GROUP2. This provides an alternative way to access variables.
Example: @SetVar(NAME1;GROUP2;VAR3)
DBHANDLE1:=@OpenDB("TEST.NSF");
NOTEHANDLE1:=@OpenNoteByID(DBHANDLE1;37386;NOTEHANDLE1);
@SetVar("Category";"NOTEHANDLE1";"Kat1");
NOTEHANDLE1:=@CloseNote(NOTEHANDLE1;0);
DBHANDLE1:=@CloseDB(DBHANDLE1);
is identical to the assignment Category[NOTEHANDLE1]:="Kat1" in the document with ID 37386 in "TEST.NSF"
Example: @SetVar(NAME1;VAR3)
@SetVar("VAR";"TEST");
is identical to the assignment VAR:="TEST"
Example: @SetVar(NAME1;GROUP2;VAR3)
DBHANDLE1:=@OpenDB("TEST.NSF");
NOTEHANDLE1:=@OpenNoteByID(DBHANDLE1;37386;NOTEHANDLE1);
@SetVar("Category":"CatBackup";"NOTEHANDLE1";"Kat1");
NOTEHANDLE1:=@CloseNote(NOTEHANDLE1;0);
DBHANDLE1:=@CloseDB(DBHANDLE1);
is identical to the assignments Category[NOTEHANDLE1]:="Kat1" and CatBackup[NOTEHANDLE1]:="Kat1" in the document with ID 37386 in "TEST.NSF"
Example: @SetVar(NAME1;VAR3)
@SetVar("VAR":"VAR2";"TEST");
is identical to the assignment VAR:="TEST" and VAR2:="TEST"
Note : This text was machine-translated and may contain inaccuracies.
