@GetVarVPR
Syntax
@GetVarVPR(VAR1);
@GetVarVPR(TEXT1;TEXT2);
@GetVarVPR(TEXT1;FN2);
Description
When @GetVarVPR is called with one parameter, the VPR (Variable Pointer Reference) for the passed variable is returned.
When called with two parameters, the variable with the name TEXT TEXT1 is searched for on the VStack TEXT TEXT2, and the VPR for this variable is returned.
If a number (FN FN2) is specified as the second parameter, the local VStack of the script or of the DEFFN function is searched for the variable with the name TEXT TEXT1, and the VPR for this variable is returned.
Return value:
On success, the VPR for the variable is returned; otherwise, for example if the variable is not found, @ERROR is returned.
Example: @GetVarVPR(VAR1);
Test:="Text Var Inhalt";
VPR:=@GetVarVPR(Test);
Ret:=@GetVarByVPR(VPR);
In this case, the content of the variable Test ("Text Var Inhalt") is assigned to the variable Ret.
Note : This text was machine-translated and may contain inaccuracies.
