@SetVarWithFieldFlags
Syntax
@SetVarWithFieldFlags(NAME1;GROUP2;VAR3);
@SetVarWithFieldFlags(NAME1;VAR3);
Description
Sets the value of the variable(s) with the name(s) 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 of accessing variables.
Unlike @SetVar, @SetVarWithFieldFlags also copies the flags of the source variable VAR3.
Example: @SetVarWithFieldFlags(NAME1;GROUP2;VAR3)
DBHANDLE1:=@OpenDB("TEST.NSF");
NOTEHANDLE1:=@OpenNoteByID(DBHANDLE1;37386;NOTEHANDLE1);
@SetVarWithFieldFlags("Category";"NOTEHANDLE1";"Kat1");
NOTEHANDLE1:=@CloseNote(NOTEHANDLE1;0);
DBHANDLE1:=@CloseDB(DBHANDLE1);
is identical to the assignment Category[NOTEHANDLE1]:="Kat1" in the document with the NOTEID 37386 in "TEST.NSF"
Example: @SetVarWithFieldFlags(NAME1;VAR3)
@SetVarWithFieldFlags("VAR";"TEST");
is identical to the assignment VAR:="TEST"
Example: @SetVarWithFieldFlags(NAME1;GROUP2;VAR3)
DBHANDLE1:=@OpenDB("TEST.NSF");
NOTEHANDLE1:=@OpenNoteByID(DBHANDLE1;37386;NOTEHANDLE1);
@SetVarWithFieldFlags("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 the NOTEID 37386 in "TEST.NSF"
Example: @SetVarWithFieldFlags(NAME1;VAR3)
@SetVarWithFieldFlags("VAR":"VAR2";"TEST");
is identical to the assignment VAR:="TEST" and VAR2:="TEST"
Note : This text was machine-translated and may contain inaccuracies.
