vb错误的参数号或无效的属性赋值?
PrivateSubCommand2_Click()DimAAsString,BAsString,CAsStringFori=1To3IfOption1(i).Value...
Private Sub Command2_Click()
Dim A As String, B As String, C As String
For i = 1 To 3
If Option1(i).Value = True Then
A = Option1(i).Caption
End If
Next i
For i = 1 To 6
If Check1(i).Value = 1 Then
B = B + Check1(i).Caption + Space(1)
End If
Next i
For i = 7 To 12
If Check7(i).Value = 1 Then
C = C + Check7(i).Caption + Space(1)
End If
Next i
MsgBox "你选择的口味是<" + A + ">" + vbCrLf + "选择的菜品如下:" + B + C + vbCrLf + "收货地址是:" + Text1.Text
End Sub
请问哪里有错误呢? 展开
Dim A As String, B As String, C As String
For i = 1 To 3
If Option1(i).Value = True Then
A = Option1(i).Caption
End If
Next i
For i = 1 To 6
If Check1(i).Value = 1 Then
B = B + Check1(i).Caption + Space(1)
End If
Next i
For i = 7 To 12
If Check7(i).Value = 1 Then
C = C + Check7(i).Caption + Space(1)
End If
Next i
MsgBox "你选择的口味是<" + A + ">" + vbCrLf + "选择的菜品如下:" + B + C + vbCrLf + "收货地址是:" + Text1.Text
End Sub
请问哪里有错误呢? 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询