VB 下拉列表问题 新手
Private Sub Command1_Click()Dim a As IntegerDim b As IntegerDim REIf Combo1.ItemData(0) Thena = 1Else If Combo1.ItemData(1) Thena = 2End IfEnd IfIf Combo2.ItemData(0) Thenb = 0Else If Combo2.ItemData(1) Thenb = 1End IfEnd IfText1.Text = aIf Form1.GetWalletBalance(a, b) = False ThenRE = MsgBox("获取余额失败", 确认, "消息提示")Else RE = MsgBox("获取余额成功", 确认, "消息提示") 'Text1.Text = "余额为:" & retValue End IfEnd Sub