Goto語句為何報錯?
作者:金字塔 來源:cxh99.com 發布時間:2018年02月23日
-
咨詢內容:
測試代碼
Sub Trade_CommandButton1_Click()
if Trade_TextBox1.Text="" then?
Msgbox "請輸入品種代碼"
Goto Line
end if
if Trade_TextBox2.Text="" then?
Msgbox "請輸入交易數量"
end if
if Trade_TextBox4.Text="" then?
Msgbox "請輸入交易價格"
end if
Line:
Application.MsgOut "委托單填寫不全"
End Sub
執行后報錯1024 說Goto行缺少語句?
請問問題在哪里,VB中沒有問題啊
?
?來源: CXH99.COM
-
金字塔客服:
不支持goto語句
?
-
用戶回復:
改用on error resume next