Language Reference Guide : 4. System Classes : DynExpr Class : Assign Method
 
Share this page                  
Assign Method
The Assign method assigns a dynamic expression's value to another dynamic expression.
This method has the following syntax:
integer = todynexpr.Assign(fromdynexpr = fromdynexpr)
The Assign method is valid only if the expression that was specified when the todynexpr object was created is a variable (subscripts and attribute references are valid). The data type of the value parameter must be compatible with the type of the DynExpr object.
If the method is successful, it returns ER_OK. If it is not successful, it returns a non-zero value. Descriptions of system constant values and their numeric equivalents are listed in Error Codes.