|
我要得到的结果是,从下拉选择中选择哪一种,就相应的执行哪个脚本。
具休如下:
Dim cchoices as String
Dim answer as string
cchoices="第一种"+Chr$(9)+"第二种"
Begin Dialog UserDialog 180, 95, "选择对话框"
ButtonGroup .ButtonGroup1
Text 9, 3, 69, 13, "请选择:", .Text1
ComboBox 9, 17, 111, 41, cchoices, .ComboBox1
OKButton 131, 8, 42, 13
CancelButton 131, 27, 42, 13
PushButton 132, 48, 42, 13, "Help", .Push1
End Dialog
Dim mydialogbox As UserDialog
answer=mydialogbox.combobox1‘-------------是不是这样写是错的??????
Select Case answer
Case "第一种"
MsgBox "你选择的是"&str(answer)
Case "第二种"
MsgBox "你选择的是"&str(answer)
End Select
请各位前辈指教。。并帮忙修改下。。谢谢!!! |
|