DialogBox NextControl
This command moves the focus in the named dialog box to the next control in the tab order. If the reverse_flag is set to True, the focus is set to the previous control.
Syntax
DialogBox NextControl dlg_name, [reverse_flag]
Synonyms
DB NC
Parameters
The following table describes the parameters of the DialogBox NextControl command:
| Parameter | Description |
|---|---|
| reverse_flag | Reverse direction flag |
Examples
The following example sets up a next and previous button to move the focus.
* As the "Next" button has the name OK hitting Return will run it
* otherwise Alt N will go to the next field and Alt P to the previous
Pushbutton "&Next",OK,154,26,40,12
ControlCommand OK,'DB NextControl NextTest'
Pushbutton "&Previous",Previous,155,46,40,12
ControlCommand Previous,'Db NextControl NextTest, True'