太平间的恐怖故事:vb6.0中的if...then end 语句在vb.net中变成了什么?

来源:百度文库 编辑:中科新闻网 时间:2024/05/07 06:44:01
if...then end语句在vb.net下不能通过编译。
请问能否换成 if...then end if 语句?
它们所表达的意思一样吗?

vb下也应该是

if .. then

end if

吧!
vb.net 下也是

if .. then

end if

对呀,vb.net 中用的是
if then 条件
表达式
else
表达式
end if