@CompareVPRList
Syntax
@CompareVPRList(VPRList1;VPRList2);
@CompareVPRList(VPRList1;VPRList2;Options);
Description
The corresponding elements are compared in each case.
(variable 1 from VPRList1 with variable 1 from VPRList2, variable 2 from VPRList1 with variable 2 from VPRList2,…)
With two parameters (The comparison is performed using the same method as the comparison operator (=)):
Compares the variables whose VPRs are present in the FLOATLIST VPRList1 and VPRList2 specified are compared for binary identity.
The data type of the variable is considered during the comparison.
With three parameters (the comparison is performed using the same method as with @Compare):
With this method, the data type is not taken into account.
With the second form (three parameters), special comparisons can be performed. For example, by using TEXT OPTIONS1 = "R" can zwei Rich-Text variables the larger as 64kB are to identity compared be.
IMPORTANT:
A VPRList is a list of handles to variables.
It follows that if the content of a variable is changed that is specified in a VPRList is specified, a subsequent comparison with @CompareVPRList uses this changed content and not the content at the time the VPRList (e.g. by @GetVarVPRList).
Example: @CompareVPRList(VPRList1;VPRList2)
V11:="ABC";
V12:=123;
V21:="AB";
V22:=123;
VPRList1:=@GetVarVPRList(V11;V12);
VPRList2:=@GetVarVPRList(V21;V22);
Ret:=@CompareVPRList(VPRList1;VPRList2);
returns FALSE
The variables V11 and V21 are not identical, therefore the result is FALSE.
Example: @CompareVPRList(VPRList1;VPRList2)
V11:="ABC";
V12:=123;
V21:="ABC";
V22:=123;
VPRList1:=@GetVarVPRList(V11;V12);
VPRList2:=@GetVarVPRList(V21;V22);
Ret:=@CompareVPRList(VPRList1;VPRList2);
returns TRUE
The variables V11 and V21 as well as V12 and V22 are identical, therefore the result is TRUE.
Note : This text was machine-translated and may contain inaccuracies.
