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