WinStudio

Parameters Property

Use the Parameters property to specify parameters passed to validators defined in a component class. A Parameters value is usually a string of WinStudio keywords and their parameters.

Since component classes are reusable, parameters in a reference to a component class in one form may be different from parameters in a reference to the same component class in another form.

For example, component class CC1 has validator V1. V1 takes 2 parameters. Because the component class will supply the parameters, the validator refers to them as %1, %2. Note that these are position parameters as opposed to named parameters.

The syntax %1, %2 allows that any instance of CC1 in a form can pass the appropriate parameters. For example, Form1 uses CC1 and passes P(Prop1) and C(Comp2). The Parameters value P(Prop1), C(Comp2) passes the values of P(Prop1) and C(Comp2) as %1 and %2 to the validator V1.

Another form that also uses CC1 may pass different values as %1, %2, such as V(Var1), C(MyComp).