在Wincc C脚本中,有字符串引用”i=1000",如何用变量来替换,以便获得外部变量的值,请问如何解决?
UAHCONNECTc1;UAHARCHIVEa1;intiWater;iWater=GetTagDWord("Water_Select");//Return-Type:...
UAHCONNECT c1;UAHARCHIVE a1;int iWater;iWater=GetTagDWord("Water_Select");//Return-Type: DWORD uaConnect(&c1);uaQueryArchiveByName(c1,"Coke",&a1);//Return-Type: BOOL uaArchiveOpen(a1);//Return-Type: BOOL uaArchiveDelete(a1,"Water=1000");uaArchiveUpdate(a1);uaArchiveClose(a1); uaReleaseArchive(a1);uaDisconnect(c1);这里,我想将“Water=1000”,替换成“water=’变量值‘”,如何解决?
展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询