连续施用了几种编写代码的风格都没能解决问题,而高手又是用C#的,只好在他的提议下,对程序结构进行修改,修改结果如下:
if lstcity.selecteditem is nothing then
else
s=s+"you favorate country is:"+lstcity.selecteditem.text
end if
注意:在then后面没有执行代码了。
问题解决
最新推荐文章于 2025-10-17 16:08:12 发布
连续尝试几种代码编写风格未能解决问题,在C#高手提议下对程序结构进行修改,给出了修改后的代码示例,如if lstcity.selecteditem is nothing then...else...end if ,并提醒then后面无执行代码。
1450

被折叠的 条评论
为什么被折叠?



