Re: [Gambas-user] gb3: clearing a public embedded array from a procedure

2011-07-04 Thread Kevin Fishburne
On 07/04/2011 08:25 PM, Benoît Minisini wrote: > > Embedded arrays are not Gambas object, their memory is allocated directly > inside the object where they are declared. > > So you can't use Clear(), as that method resizes the array to zero elements. > > If you don't want to be confused, just use n

Re: [Gambas-user] gb3: clearing a public embedded array from a procedure

2011-07-04 Thread Benoît Minisini
> I've declared an array like this: > > Public QueueObject[1024] As String > > and tried to clear it in a procedure like this: > > QueueObject.Clear() > > but receive the error "Embedded array...". > > I just need to erase all the values in the array so I can reassign new > ones. Obviously I

[Gambas-user] gb3: clearing a public embedded array from a procedure

2011-07-04 Thread Kevin Fishburne
I've declared an array like this: Public QueueObject[1024] As String and tried to clear it in a procedure like this: QueueObject.Clear() but receive the error "Embedded array...". I just need to erase all the values in the array so I can reassign new ones. Obviously I can do this manually, bu