kanber Posted May 5, 2021 Share Posted May 5, 2021 Hi, when I tired ; var.strx1 = "FullScaleMin_AI4" var.x22 = 5 var.strdeneme = var.strx1+"="+(var.x22) Execute(var.strdeneme) it is working. But when I tried minues value; var.strx1 = "FullScaleMin_AI4" var.x22 = -5 var.strdeneme = var.strx1+"="+(var.x22) Execute(var.strdeneme) it is giving error "C1066 Invalid operator". But I can set the channel like FullScaleMin_AI4=-5. where is the problem I can not find Quote Link to comment Share on other sites More sharing options...
AzeoTech Posted May 5, 2021 Share Posted May 5, 2021 First, don't use var. for your global variables. That is left over syntax from like 15 years ago. Instead, declare your globals and just use the variable name alone. Second, it looks like a parser bug. I'm amazed no one ever ran into it before. Just add a space after your equal sign: var.strdeneme = var.strx1+"= "+(var.x22) Quote Link to comment Share on other sites More sharing options...
kanber Posted May 6, 2021 Author Share Posted May 6, 2021 thank you for your comment. After blank it worked. thank you Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.