Global variables arent accessible inside class procedures(funcs).
Global variables bug
Please send me a little code snippet that I can work with for debugging!
Here is the code I am testing with, I will make sure global variables works within class procedures.
I will keep you up-to-date on the progress.
- Code:
#class t
public(a$);
proc test
a$ = "COOL";
ShowMessage(a$, ",", g$);
end;
#endclass
proc main
g$ = "HELLO WORLD!";
global(g$);
#object t o$
o.test;
ShowMessage(o.a$);
end;
I will keep you up-to-date on the progress.
just a simple piece of code:
- Code:
#class TTest
public(
A$
);
public proc test()
showMessage(AppPath$);
end;
public proc test1()
showMessage(glob$);
end;
#endClass
proc main
glob$="This is test";
global(glob$);
#object Ttest t$;
t.test();
t.test1();
end;
My code and your code works wonderfully now.
Thanks for finding this bug.
Thanks for finding this bug.