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

Cristiano Guadagnino criguada at gmail.com
Thu Dec 2 11:43:43 CET 2021


STATIC for local variable declarations is supported only starting from
v3.17.
Which Gambas version are you using?

Cris
[image: 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> 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 ]----
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20211202/61486107/attachment-0001.htm>


More information about the User mailing list