Run Script validators

Run Script validators allow the use of scripts to determine whether the component's value is valid. To define a Run Script validator, you must specify the name of the script to run and a comma-delimited list of parameters to pass to the script. You can specify literal, property, variable, and component values as parameters.

In the script, parameters can be accessed by using the GetParameter function. GetParameter(0) returns the first parameter value; GetParameter(1) returns the second parameter value; and so on.

To pass the validation, the script must return zero. If the script returns a nonzero value, WinStudio fails the validation.

Scripts access WinStudio objects and data through the scripting API.