The below code throws an error : “This method doesn’t return a value”
[code]Xojo.Core.Timer.CallLater(500, AddressOf switchToPage(0) )
Public Sub switchToPage(page as integer)
msgbox str(page)
End Sub[/code]
So I cannot call a methode that has properties?
Is this considered a bug or feature?
Sascha_S
(Sascha S)
2
Taken from the LR: “The method parameter is a delegate to a method that takes a parameter. The parameter is passed in the argument parameter.”.
http://developer.xojo.com/xojo-core-timer
Does
Xojo.Core.Timer.CallLater(500, AddressOf switchToPage, 0 )
work?
There is a second form.
Xojo.Core.Timer.CallLater(mSec, delegate, param as Auto)
Sascha_S
(Sascha S)
4
Thank you Greg. I saw it shortly after and edited my Post while you wrote your reply