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

Tobias Boege tobs at taboege.de
Thu Dec 2 11:43:19 CET 2021


On Thu, 02 Dec 2021, Rolf-Werner Eilert wrote:
> 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?
> 

Documentation says that this feature will be available in Gambas 3.17,
which has not been released yet. Are you sure that you are using the
development version of Gambas?

Best,
Tobias

-- 
"There's an old saying: Don't change anything... ever!" -- Mr. Monk


More information about the User mailing list