How to get the value of a variable in SCADA Basic

3 Posts
2 Users
0 Likes
17 Views
fl.chen
(@fl-chenarcinfo-com)
Posts: 170
Reputable Member
Topic starter
 

Hello guys,

Who knows how to get the value of a variable in SCADA Basic?

Like this:

Dim NewVariable as str;
NewVariable = addstring("@", "Branch",".Register01");

As you know, the value of NewVariable is "@Branch.Register01", so how to get the value of variable of "@Branch.Register01".Is there a function to do it?

Thanks
Mark

 
Posted : 18/03/2015 2:52 pm
fl.chen
(@fl-chenarcinfo-com)
Posts: 170
Reputable Member
Topic starter
 

It is solved by adding a '?' before the variable name:?NewVariable. 🙂

 
Posted : 18/03/2015 3:39 pm
n.kunzer
(@n-kunzerarcinfo-com)
Posts: 1236
Member Moderator
 

Yes but you must remove the @

Nico

 
Posted : 18/03/2015 5:09 pm