This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Gobal Variable Script

Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
Post Reply
d
dansari
Voice
Posts: 1
Joined: Thu Feb 09, 2006 11:24 pm

Gobal Variable Script

Post by dansari »

I am new to the tcl language. I have a script that calls another script with parameters that are set in each. We need a script that modifies the parameters in each of the scripts at the same time to do parameter variation.

So I need a top script that will give inputs to the two levels of scripts to set variables in them at the same time.

How can this be done? Can you give me an example?


Thank you for your help...
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

what do you mean by "two levels"? if you simply source a script from another, that's not a level unless you do it in a proc, in which case you need to learn about uplevel and upvar
connection, sharing, dcc problems? click <here>
before asking for scripting help, read <this>
use

Code: Select all

 tag when posting logs, code
Post Reply