Syntax |
OptionGroup .Identifier |
Description |
Specifies the start of a group of option buttons within a dialog box template. |
Comments |
The .Identifier parameter specifies the name by which the group of option buttons can be referenced by statements in a dialog function (such as DlgFocus and DlgEnable). This parameter also creates an integer variable whose value corresponds to the index of the selected option button within the group (0 is the first option button, 1 is the second option button, and so on). This variable can be accessed using the following syntax: DialogVariable.Identifier. This statement can only appear within a dialog box template (that is, between the Begin Dialog and End Dialog statements). When the dialog box is created, the option button specified by .Identifier will be on; all other option buttons in the group will be off. When the dialog box is dismissed, the .Identifier will contain the selected option button. |
Example |
This example creates a group of option buttons. Sub Main() |
See Also |
CancelButton (statement); CheckBox (statement); ComboBox (statement); Dialog (function); Dialog (statement); DropListBox (statement); GroupBox (statement); ListBox (statement); OKButton (statement); OptionButton (statement); Picture (statement); PushButton (statement); Text (statement); TextBox (statement); Begin Dialog (statement), PictureButton (statement). |
O |