Changing Header Text for a Form Tab

The header text for a tab form changes dynamically depending on conditions the programmer designs. To change the header text, move the desired text to the header variable in a conditional manner.

MOVE "HeaderText" TO ProgramCodeF1-LOC-TabName-TAB

In the following example, the form tab header displays as "Guests" if the form tab is not protected (can be accessed), and "No Guests" if the form tab is protected (cannot be accessed).

001169     IF (GD01F1-LOC-GUESTS-TAB-AF = CRT-FOLDER-TAB-PROTECT)
001170         MOVE "No Guests" TO GD01F1-LOC-GUESTS-TAB
001171     ELSE
001172         MOVE "Guests"        TO GD01F1-LOC-GUESTS-TAB.