Hello.
I have a simple problem, I searched in help files and it didn't answer my question!
The problem is: I want a function to get a my string as an input (the input string is the name of a local variable) and return my local variable as a tag. just this!
for example:
I have several local variables like this:
BIT_1, BIT_2, BIT_3, ...
I want to set all of them to 1 by pressing a button. The code may be like this:
FOR I=1 TO 30 DO
TempVar = someFunction("BIT_" + intToStr(I));
TempVar = 1;
END
The problem is : "someFunction".
I have lots of nodes in my project that have the same parameters. So I create some super genie and pass the ID number of every instance to it. Now I need to access my local variable with this ID number.
I'm new in my job, and I'm trying to understand it.
Hope you can help me.
Thanks a lot.
I have a simple problem, I searched in help files and it didn't answer my question!
The problem is: I want a function to get a my string as an input (the input string is the name of a local variable) and return my local variable as a tag. just this!
for example:
I have several local variables like this:
BIT_1, BIT_2, BIT_3, ...
I want to set all of them to 1 by pressing a button. The code may be like this:
FOR I=1 TO 30 DO
TempVar = someFunction("BIT_" + intToStr(I));
TempVar = 1;
END
The problem is : "someFunction".
I have lots of nodes in my project that have the same parameters. So I create some super genie and pass the ID number of every instance to it. Now I need to access my local variable with this ID number.
I'm new in my job, and I'm trying to understand it.
Hope you can help me.
Thanks a lot.