Equinox Online Help - Language Reference - A to Z

Home

SetTabText

Applies to
SyntaxSetTabText TabName, TabNumber, TabText
Action[Statement] Sets text on a tab of a tabbed control at runtime.
ScopeOnly usable in form methods.
Notes

This statement replaces the text that appears on the tabs of a form tabbed control. You can replace one tab caption at-a-time. TabName is the value of the Name property of the tabbed control, TabNumber is an integer in the range [1 to 8] corresponding to the eight possible labels (properties Text 1 to Text 8). TabText is the text that you want to assign to the specified tab. Changes made using this statement remain in effect until either the form is closed, or another SetTabText statement is executed for the same tab of the same tabbed control.

CategoryTabbed controls
See Also ChangeTab, ActiveTab, ShowOverlay
Example

This example replaces the eight existing labels of a tabbed control called "Prizes", using cardinal numbers that correspond to each of the tabs.

number i
fr i = 1 to 8
SetTabText "Prizes", i, Card(i)
next i