[Gambas-user] STATIC doesn't work?

Eilert eilert-sprachen at ...221...
Wed Mar 17 18:07:09 CET 2004


Hi,

I repeat this questions as not everyone may have followed my thread with 
Rob. So here is my point:

DIM i AS INTEGER

is ok, no problem, but

STATIC x AS INTEGER

doesn't run, it says "syntax error". I tried

STATIC PRIVATE x AS INTEGER

but it won't run, too.

I need static variables that keep their contents to the next call of the 
sub or function, and that is what it's supposed to do, isn't it? Or did 
I get that somewhat wrong? The text in the docu isn't quite clear about 
this.

Rolf





More information about the User mailing list