SetInterval with self function?

Discuss any general programming issues here
Post Reply
Bugala
Posts: 1178
Joined: Sun Feb 14, 2010 7:11 pm

SetInterval with self function?

Post by Bugala »

I am trying to set up a function to be executed during "waitevent" command, and i suspect my problem has to do with function containing the self function.

basically i am trying to:

Code: Select all

SetInterval(NIL, func:myfunc, 25)
It seems to me that you cant use SetInterval with "func:myfunc" since then it tries to give the result as the argument.

I have also tried "Func.myfunc" but then obviously the self argument is left out, and code fails for that reason.

Is there a way to get around this problem, that is there a way to use "SetInterval" command with "self"?
Post Reply