dcamp1
1
I can’t figure this out.
I’m trying to set a GLOBAL variable.
ConfimIndex = 1
I want to be able to read ConfirmIndex from anywhere in the program(all screens)
I have tried system.util.getGlobal()[ConfirmIndex] = 1
But come back with a script error says
ConfirmIndex has not been defined.
Can anyone help?
Thanks
Can you just create a memory tag and reference that?
If you put the variable in project startup scripts and access them with full path (e.g. project.NewScript.blahblah ) it should work!
chi
4
Try
system.util.getGlobals()['ConfirmIndex']
ConfirmIndex is treated as a variable without the qoutes.
dcamp1
5
Thanks everyone, I like the Idea of using a memory tag, but I will play with the other ways also.
I’m still learning so all help is greatly appreciated.