Description
Display the input dialog box and returns true if the user clicked OK or pressed Return.
Syntax
retvalue = object.ShowDialog |
object
Required. Object name, returned byDim idlg As InputDlg = New InputDlg.
Example
In this example, the item with the value 789 gets preselected when the combo is displayed.
Dim idlg As InputDlg = New InputDlg
idlg.Title = "My title"
Dim combo As InputDlg.Combo = New InputDlg.Combo
combo.AddItem("Above", 456)
combo.AddItem("Below", 789)
Dim po = idlg.AddCombo("Position", combo, combo.ToIdx(789))
If idlg.ShowDialog Then ' if OK was clicked...
MsgBox(idlg.GetComboData(po)) ' return the value of selected item
End If