[Gambas-user] Question on string[]
Eilert
eilert-sprachen at ...221...
Mon Dec 13 15:19:55 CET 2004
Hi,
I just found that it's possible to re-define a module-public string
array from within the same sub - is that allowed?
static myArray as string[]
sub myProcedure()
.
.
.
myArray = new string[]
.
.
myArray.Add(something...)
end sub
So if I call myProcedure again, no complaint, and everything runs
through again like expected :-) But - what happens here? Is myArray made
again, i. e. like REDIM or is a copy made? Buffer overflow...?
Rolf
More information about the User
mailing list