UDSSet (Magic xpi 4.5)
This function updates one UDS variable with the data of another UDS variable of the same UDS model.
Syntax:
|
UDSSet (Alpha destinationudsvar, Alpha sourceudsvar, Boolean logicalappend, Alpha udsmodel)
|
Parameters:
|
destinationudsvar: Variable name (UDS type variable) to be set.
sourceudsvar: The variable (UDS variable) name containing the input data.
logicalappend: The logical field.
udsmodel: The name of the UDS model (before defining or using a UDS variable, you need to define a UDS Type – this is the UDS model Name).
|
Returns:
|
0 if succeeded. The relevant error number if failed.
|
Example:
|
UDSSet ('F.CustomerList2','F.CustomerList1','TRUE'LOG,'StandardList')
Copies all F.CustomerList1 records to F.CustomerList2 (records will be appended to F.CustomerList2). Both F.CustomerList1 and F.CustomerList2 are StandardList UDS model flow variables.
|
See also:
|
UDSClear, UDSDeleteRecord, UDSGet, UDSGetField, UDSUpdateField
|