[Gambas-user] About Gambas arrays

Benoit Minisini gambas at ...1...
Tue May 3 16:29:25 CEST 2005


On Tuesday 03 May 2005 16:23, nando wrote:
> Benoit,
>
> My transition from VB to GAMBAS is progressing.
> I want to use .ADD and .CLEAR for an array
> but the syntax and usage eludes me.
>
> If I do the following...
>
>   PRIVATE  my_array [4096] as SHORT
>
> I am having a difficulty using .CLEAR
>
>   my_array.clear  reports it is not an object
>
> I know I am missing something in my understanding here.
> Can you aid in clearing my brain fog?
>
>
> Thank you
> -Fernando
>

I can just repeat what I said in my previous mail:
- DIM array[xx] AS Type are static arrays, not objects.
- DIM array AS NEW Type[xx] are dynamic arrays, i.e. true Gambas objects.

Regards,

-- 
Benoit Minisini
mailto:gambas at ...1...




More information about the User mailing list