组态王6.53中为什么在“命令语言”中确定时它提示 变量‘if(menuindex’未定义

2024-10-31 09:28:33
推荐回答(1个)
回答1:

你的括号‘(’ 是在中文状态下输入的 ,要改为英文状态下输入的
如:
if(menuindex==0)
showpicture("监控中心");
if(menuindex==1)
ShowPicture("报表");
if(menuindex==2)
exit(0);