Language Reference Guide : System Classes : DynExpr Class : SetValue Method
 
Share this page          
SetValue Method
The SetValue method re-evaluates the address of the expression that was specified when the DynExpr object was created and sets it equal to the value of the specified expression.
This method has the following syntax:
integer = DynExpr.SetValue(value = expression)
This method is valid only if the expression that was specified when the DynExpr 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.