Is there any way to create a timer in a class. SetTimer does not seem to work, since I need a module to use AddressOf. Any ideas?
Printable View
Is there any way to create a timer in a class. SetTimer does not seem to work, since I need a module to use AddressOf. Any ideas?
SetTimer doesn't work in a class?!
Have you tried just using say, your own Timer, by using GetTickCount()? Are you sure you are using SetTimer correctly? :ehh:
Phreak
Quote:
Originally Posted by «°°phReAk°°»
MSDN says:Quote:
---------------------------
Microsoft Visual Basic
---------------------------
Compile error:
Invalid use of AddressOf operator
---------------------------
OK Help
---------------------------
Quote:
AddressOf procedurename
The required procedurename specifies the procedure whose address is to be passed. It must represent a procedure in astandard module module in theproject in which the call is made.
More from MSDN...
Quote:
Although you can use AddressOf to pass procedure pointers among Basic procedures, you can't call a function through such a pointer from within Basic. This means, for example, that aclass written in Basic can't make a callback to its controller using such a pointer. When using AddressOf to pass a procedure pointer among procedures within Basic, theparameter of the called procedure must be typed As Long.