Exec Event

This event is executed after the Start Event every time a component is executed. It is the event to which Mathcad supplies inputs and output variables for a Control or Scripted component as visible in the Mathcad worksheet. These are defined as two parameter collections: Inputs and Outputs. These parameters are objects of type DataValue. See DataValues Collection for details.

In this sample, the object is a slider control and its output is being programmed in the Exec event.

Example

Sub SliderEvent_Exec(Inputs,Outputs)
Outputs(0).Value = Slider.Position
End Sub

Note: