Intouch Scripting: Problems with changing a tags value

SouthernStang

Member
Join Date
May 2019
Location
Alabama
Posts
28
I am new to this line of work so please excuse me if this is extremely simple. I have also Searched the forums and web for answeres and am getting no where

I know that to change the value of a tag you just simply:

Code:
TagName1 = 1;

But what If you are building the tag name via a string?

Code:
DIM TagToChange as Message;

TagToChange = "TagName"+1;

How do I then take the string in variable and use it to change the value of an existing tag?

I have tried creating and Indirect Analog Tag and doing:

Code:
InDirectTag.Name = "TagName"+1;

But the Name property remains blank. It doesnt work.

I am pulling my hair out over this.. it should be hard.. it has to be something simple I am missing.
 

Similar Topics

I am looking for a way to capture keyboard input data and store it in a tag. Something like ‘MessageTag = System.In.NextLine();” From there I can...
Replies
2
Views
2,246
Hi folks, We have a second line starting up soon so I am trying to disable the operators from viewing parts of the plant depending on which line...
Replies
7
Views
4,389
Im trying to allow the user to take a span of dates and copy log files from one folder to another so they can view them without disturbing the log...
Replies
0
Views
3,075
Hi all , i have done some scripting in order to record some values in a csv file...
Replies
1
Views
1,697
Can someone point me in the right direction to find some information on how to learn scripting using Intouch? I need water pumps to turn on/off...
Replies
11
Views
4,545
Back
Top Bottom