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

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


Am 02.12.21 um 11:43 schrieb Tobias Boege via User:
> 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
> 

Haha, no, ok... got it :)

Rolf



More information about the User mailing list