Syntax Error in Scripting - Printable Version +- Ewon Technical Forum (https://techforum.ewon.biz) +-- Forum: Development (https://techforum.ewon.biz/forum-50.html) +--- Forum: BASIC Script (https://techforum.ewon.biz/forum-52.html) +--- Thread: Syntax Error in Scripting (/thread-1132.html) |
Syntax Error in Scripting - Vishant - 18-12-2019 Hi, We are facing syntax error in below script. we are trying since last 2 days but unable to solve. can any one help us its very urgent. Json$ ="" Ti% = GETSYS PRG, "TIMESEC" Json$ = '{"customer": "Test","site": "BLR","department": "BM","assettype": "Main", "asset": "M01", "assetcode": "Machine1","timezone": "/Asia/Kolkata","timestamp":"' + time_s1$ Json$ = Json$ +'","messageid":' + STR$(Ti%) +',"groupid": "A", "description": "a_BM","tags": [' Json$ = Json$ +'{"component": "Motor_1","tag": "M1DE","value":' + STR$(HT_M1DE_G_XA_RMS_Velocity@) +',"unit": "' + STR$("HHHH")+ '"}]}' GOTO ProcessStatus END RE: Syntax Error in Scripting - AngelaT - 18-12-2019 I'm not sure if this is your only problem but this jumps out at me: STR$("HHHH") You can't do a STR$ of a string. RE: Syntax Error in Scripting - simon - 20-12-2019 No, you cannot ;-) |