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.

timer id within namespace problem

Old posts that have not been replied to for several years.
Locked
p
pnp

timer id within namespace problem

Post by pnp »

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.
User avatar
stdragon
Owner
Posts: 959
Joined: Sun Sep 23, 2001 8:00 pm
Contact:

Post by stdragon »

Extra [ ], or missing "list" maybe?
User avatar
awyeah
Revered One
Posts: 1580
Joined: Mon Apr 26, 2004 2:37 am
Location: Switzerland
Contact:

Post by awyeah »

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.
==================================
User avatar
strikelight
Owner
Posts: 708
Joined: Mon Oct 07, 2002 10:39 am
Contact:

Post by strikelight »

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.....
Locked