我有计划,需要这样的用户输入:“附加信息:从字符串”yes“转换为键入”Boolean“无效。”
Dim yesorno = InputBox("Do you have more credit cards?", "Thomas Shera")
If yesorno = "Yes" Or "yes" Then
Name = InputBox("You are a rich person, enjoy infinite credit card bill.")
Else
MsgBox("You poor person, you have only " & dcreditcards & " credit cards.")
End If
违规的线两条具体:
If yesorno = "Yes" Or "yes" Then
这给出了错误:在修复这怎么
An unhandled exception of type 'System.InvalidCastException' occurred in Microsoft.VisualBasic.dll
Additional information: Conversion from string "yes" to type 'Boolean' is not valid.
理念,使“是”或“是”不会导致无效的错误异常?