Variable Runtime Behavior (Magic xpa 4.x)
After the variable value has been updated and the recomputation cycle completed, Magic xpa enters the Variable Change logic unit and executes the Variable Change event.
The variable can be updated by the Update operation, Init expression (or recompute of the Init expression), VarSet evaluation, Input form, parameter passing, return code, user interaction, and drag and drop. Cancel and Rollback does not cause the handler to be invoked.
The value of the variable within the handler is the updated variable. The variable value before the recompute process is stored in the Chg_Prv_ parameter.
When there is more than one Variable Change logic unit, the order of execution is determined by the entry order in the Data View Editor.
For a control change, the Chg_Reason_ parameter is always 0. Moving between options within a Choice control causes the Variable Change event to be raised.
Level Function
MainDisplay Function
Variable Change and Recompute