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

Rolf-Werner Eilert rwe-sse at osnanet.de
Thu Dec 2 12:18:21 CET 2021


Yes, it's alright, I didn't see realize... Thank you!

Rolf


Am 02.12.21 um 11:43 schrieb Cristiano Guadagnino:
> STATIC for local variable declarations is supported only starting from 
> v3.17.
> Which Gambas version are you using?
> 
> Cris
> cloudHQ <https://www.free-email-tracker.com>	Powered by
> cloudHQ <https://www.free-email-tracker.com>	
> 
> 
> Il giorno gio 2 dic 2021 alle ore 11:31 Rolf-Werner Eilert 
> <rwe-sse at osnanet.de <mailto:rwe-sse at osnanet.de>> ha scritto:
> 
>     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
> 
>     ----[ http://gambaswiki.org/wiki/doc/netiquette
>     <http://gambaswiki.org/wiki/doc/netiquette> ]----
> 
> 
> 
> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----
> 



More information about the User mailing list