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.
Old posts that have not been replied to for several years.
p
pnp
Post
by pnp » Thu May 20, 2004 2:46 am
Maybe its just late, I've been up too long, ran out of caffiene long ago, but I can't for the life of me figure out what's going wrong.
I've been trying to setup a timer to execute a proc within my namespace and assign the timer id to tmrid so I can kill the timer later.
Code: Select all
set tmrid [ timer 15 [[namespace current]::compare_cache forum] ]
I'm thinking its a problem with [namespace current], because if I try to set the timer without trying to get the timer id the script will die and I don't understand why.
stdragon
Owner
Posts: 959 Joined: Sun Sep 23, 2001 8:00 pm
Contact:
Post
by stdragon » Thu May 20, 2004 10:07 pm
Extra [ ], or missing "list" maybe?
awyeah
Revered One
Posts: 1580 Joined: Mon Apr 26, 2004 2:37 am
Location: Switzerland
Contact:
Post
by awyeah » Thu May 27, 2004 10:11 am
Try this:
Code: Select all
set tmrid [list timer 15 [namespace current]::compare_cache forum]
***
There was an extra bracket as stdragon mentioned.
It should work with the list command.
·awyeah·
==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
==================================
strikelight
Owner
Posts: 708 Joined: Mon Oct 07, 2002 10:39 am
Contact:
Post
by strikelight » Thu May 27, 2004 4:00 pm
awyeah wrote: Try this:
Code: Select all
set tmrid [list timer 15 [namespace current]::compare_cache forum]
***
There was an extra bracket as stdragon mentioned.
It should work with the list command.
[list ... is in the wrong place, this will simply set the variable "tmrid" to a list of text.....