vb程序设计答案

2025-03-05 01:11:22
推荐回答(1个)
回答1:

private sub command1_click()
txt1=input("请输入身高")
if not isnumeric(txt1) then
txt1=""
msgbox"非法输入,请重新输入!",16
exit sub
end if
txt2=input("请输入体重")
if not isnumeric(txt2) then
txt2=""
msgbox"非法输入,请重新输入!",16
exit sub
end if
end sub