Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Passing Variable to Diff Level 1

Status
Not open for further replies.

tomhughes

Vendor
Aug 8, 2001
233
US
I am trying to pass a variable to a different level.
I have 4 levels.
Level0 = Root Level - Start
Then I load level 10
then level 9
then level 8.
How do I go about passing a variable from level0 to level8?
Should I retrieve the variable from level0 while in level8, or should I pass the variable to level8 while in level0.

Anyway, I have not been successful at either method, and this shuld be a very simple procedure.
 
If you set a variable on _level0 like...

_level0.my_var = "tom";

Than if can be set or gotten from anywhere...

From level 8...

_level8.new_var = _level0.my_var;

_level0.my_var = "old";

You could probably do it with _global.my_var also. Regards,

oldman3.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top