Exec Event
The Exec event is executed after the Start event, every time a control is executed. It is the event to which Mathcad supplies input and output variables for an advanced control as visible in the Mathcad worksheet. These are defined as two parameter collections: input and output. These parameters are input and output objects. In the following example, the object is a slider control, and its output is being programmed in the Exec event. If you set the control properties using the Exec event, you must set the output.
Jscript
function SliderEvent_Exec(Inputs,Outputs) {
Outputs[0].Value = Slider.Position();
};
VBscript
Sub SliderEvent_Exec(Inputs,Outputs)
Outputs(0).Value = Slider.Position
End Sub
Was this helpful?