Calculates fields based on the control or cell (in an edit table) losing focus.
bforward = CALCULATE (ctrlentID, ctrlclassID, ctrlcolumn)
CALCULATE accepts arguments for the following parameters.
|ctrlentID||Has the format WindowName.ControlName, where WindowName is the identifier of the window that contains the affected control, and ControlName is the identifier of the control. Notice that a period separates the two values.|
|ctrlclassID||The type of control that recognizes the event. This event is applicable only to a control bound to a symbolic from the primary table.|
|ctrlcolumn||The column number.|
True or false. If false, the program execution returns to the calling procedure. If true, the event processing goes to the next level.
Recalculating All Controls
Recalculating a Data Bound Control Based on a Change in an Edit Table
Note: To enable a data bound control based on a symbolic field to recalculate if a value in an edit table changes, update the DEFPROP property (not the ARRAY property) of the edit table. Then send a CALCULATE event to the data bound control, as follows:
Occurs after a LOSTFOCUS event or POSCHANGED event (for an edit table). The CALCULATE event occurs when there is a relationship between two controls (or columns, in an edit table) based on a primary table. The CALCULATE event will only occur if there is a control that is based on a calculated field which is dependent on the control that is losing focus.