Xojo.Core.Timer.CallLater bug or feature

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?

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



Xojo.Core.Timer.CallLater(500, AddressOf switchToPage, 0 ) 


There is a second form.

Xojo.Core.Timer.CallLater(mSec, delegate, param as Auto)

Thank you Greg. I saw it shortly after and edited my Post while you wrote your reply :smiley: