SetInterval with self function?

Discuss any general programming issues here

SetInterval with self function?

Postby Bugala » Sun Feb 28, 2016 4:56 pm

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"?
Bugala
 
Posts: 621
Joined: Sun Feb 14, 2010 8:11 pm

Return to General programming

Who is online

Users browsing this forum: No registered users and 3 guests