Sascha_S
(Sascha S)
1
While bringin Code from API1 to API2, i see Timer is deprecated. You should use Timer instead
messages.
f.e. in this line
Xojo.Core.Timer.CallLater( 2500, AddressOf pic_freeACSStatusDot, &cC0C0C000 )
but a simple
Timer.CallLater( 2500, AddressOf pic_freeACSStatusDot, &cC0C0C000 )
brings a There is more than one method with this name but this does not match any of the available signatures.
error.
I have some problems finding the proper way to do it in API2. Can someone please point me to the correct direction?
StefanA
(StefanA)
2
Timer.CallLater should be right.
Maybe a Using clause for “Xojo.Core” or anything like that?
This works:
Timer.CallLater 50, AddressOf TimerAction
Private Sub TimerAction()
End Sub
Sascha_S
(Sascha S)
3
Thank you @StefanA but i had a poor example. My issues happen only with Methods which need parameters. I’ve updated my example.
StefanA
(StefanA)
4
1 Like
Sascha_S
(Sascha S)
5
Excellent. It works like a charm!
Thank you @StefanA
1 Like