[Gambas-user] Static as a variable definition makes trouble

Rolf-Werner Eilert rwe-sse at osnanet.de
Thu Dec 2 11:30:49 CET 2021


I tried this

Public Sub Timer1_Timer()
   Static zlr As Integer

but it says "Unexpected: Static"

Why's this? Shouldn't this make a static variable "zlr" the value of 
which is kept from time to time?

Regards
Rolf


More information about the User mailing list