I am trying to specify a global field similar to specifying an object on a form:
forms.Buttons_Panel.elements[buttonpanel].text
I wanted to do something like
var buttonvar = ‘Button’ + arguments[0];
globals[buttonvar] = arguments[0];
However, this doesn’t work. I don’t get an error, it just returns zero. If I do
globals.Button1 = arguments[0];
it returns the correct result to the global field. I assumed you could do the same with globals as you could do with forms. Is this not true? Or do I have the wrong syntax? Thanks.
Reed