Visual switch

Storage size

2 bytes

Keyable length

Not applicable

Static values

Text, picture or native picture

Function

Displays a series of items. The next item in the field is displayed when the field is clicked. The value of the field is an integer corresponding to the position of the currently-displayed item in the series, starting with 1 and incremented by 1.

The items in a visual switch are defined by the static values of the data type or when the application is running, using the add item statement. Items added at runtime aren’t saved in the application dictionary; they must be added each time the application is run.

It’s sometimes necessary to use a script to assign the field a value to initially display an item in the field. This typically occurs when the value of the visual switch won’t be retrieved from a table.


Documentation Feedback