1、函数定义:intZhiShiDeng(BOOLYunXing,BOOLGuZhang)
函数引用:ZhiShiDeng('脱脂池1#泵运行','脱脂池1#泵故障')
这里用双引号提示参数类型不符,单引号可以,如果用GetTagBit("脱脂池1#泵运行")也可以。
2、函数定义:intWGFillQuan(char*lpszPictureName,char*lpszObjectName,BOOLlow,BOOLmiddle,BOOLhigh)
函数引用:WGFillQuan("NewPdl3.Pdl","IMPORT29",GetTagBit("脱脂池1#泵运行"),GetTagBit("脱脂池1#泵故障"),GetTagBit("脱脂池2#泵运行"))
如果直接用"脱脂池1#泵运行",系统提示我
error(0069)typemismatchinargument3。
error(0069)typemismatchinargument4。
error(0069)typemismatchinargument5。
如果改成单引号'脱脂池1#泵运行',系统又提示我error(007a)multiplecharconstantisnotallowed。error(007a)multiplecharconstantisnotallowed。error(007a)multiplecharconstantisnotallowed。
这里
1、我是在动态对话框中使用的,
2、我是在全局脚本中使用的。请问,这是怎么回事?单引号和双引号的区别在哪里?谢谢!