VISIBLEWHEN keyword

Applies to

All component types

Description

Specifies the conditions under which this component is visible. If you reference variables, other components, or properties on collections on the form, WinStudio creates dependencies so that when those values change, the condition is automatically executed.

The keyword is stored in the format specification and is not normally directly visible, because the keyword's contents are placed into the Visible When field in the Component properties sheet. However, if you are using the Use Free Form option, you must manually enter this keyword and its values in the free form Data Type field.

Syntax

Use the Edit Set of Conditional Actions dialog box from the Visible When field in the properties dialog to build the appropriate expression when creating an event handler of type Conditional Action.

Remarks

This keyword is used in expressions stored in the forms database. However, in most cases, you define the conditions for requiring the component by using the dialog box described above.