Storing global references between Spin objects
Randyy
Posts: 3
Hello all,
I've been beating my head against the wall for a week now with a problem. Searched forums, but I can't find a solution. Hopefully someone can help.
Simplifying my problem, I have two objects, the main object and a support object with several public methods. I can pass a reference to the .start method in the support object and successfully refer to it via Long[reference], both writing and reading from WITHIN the method. I can't seem to save that reference however for use from other methods in the object. I've tried
I've been beating my head against the wall for a week now with a problem. Searched forums, but I can't find a solution. Hopefully someone can help.
Simplifying my problem, I have two objects, the main object and a support object with several public methods. I can pass a reference to the .start method in the support object and successfully refer to it via Long[reference], both writing and reading from WITHIN the method. I can't seem to save that reference however for use from other methods in the object. I've tried
myGlobal := reference and myGlobal := Long[reference], both with and without the @ sign, and my other methods don't seem to be able to read or write to the main object's variable. Can anybody tell me what I'm doing wrong?
Comments
In the child object you have this:
hope that helps.