PSHBTNCHC (Push Button Field Choice) Keyword for Display Files--Example

Figure 228 shows how to specify the PSHBTNCHC keyword:

Figure 228. Specifying the PSHBTNCHC Keyword

|...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8
 
A
A          R RECORD
A            :
A            :
A            F1             2Y 0B 24 02PSHBTNFLD
A  01                                  PSHBTNCHC(1 '>Help' HELP)
A                                      PSHBTNCHC(2 &F3 CA03)
A                                      PSHBTNCHC(3 'E>nter')
A            F3             4A  P
A
A

In this example, three choices are defined for the push-button field F1. The text for choice 2 is contained in field F3, and the mnemonic for choice 2 must be contained in the text supplied by the application at run time. If indicator 01 is off when the record is written, only choices 2 and 3 are displayed.