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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Opening a procedure

Status
Not open for further replies.

BiggerT

Programmer
Jan 20, 2004
10
0
0
NL
Hello I've got my filename generator working.

Now I want to run a procedure from another (Tcl)program. I think it's possible with the namespace imoprt command but I can't figure out how to.

Does somebody know how to do this or does somebody has another idea?
 
If I understand your situation correctly, first you must source the other Tcl script (source <scriptname>). Then you invoke the proc normally. Alternatively, you could have made the other script(s) a package. Then you basically source the package only with &quot;package require ...&quot;.

Bob Rashkin
rrashkin@csc.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top