Thank you.  I saw ReDim, but from what I read (and it wasn't an actual OOo web 
page, so it wasn't official), it looked like using it destroyed the current 
array.  Now I'm straight on that.


Hal

On Jun 18, 2011, at 10:48 PM, Ariel Constenla-Haile wrote:

> Hello Hal,
> 
> On Saturday 18 June 2011, 23:35, Hal Vaughan wrote:
>> Is there any way, in OOo BASIC, to create something like a vector or linked
>> list or anything that gives me something like an array that I can keep
>> adding elements to?  (Everything I found with an array indicated it has to
>> be declared with a set number of members.)
> 
> search in the OOo help "ReDim"
> 
> Sub Test_Array
>       Dim arr(0) as Integer
>       arr(0) = 0
>       
>       Dim i%
>       For i = 1 To 10
>               ReDim Preserve arr(i) 
>               arr(i) = i
>       Next
> End Sub
> 
> 
> Regards
> -- 
> Ariel Constenla-Haile
> La Plata, Argentina

-- 
-----------------------------------------------------------------
To unsubscribe send email to dev-unsubscr...@api.openoffice.org
For additional commands send email to sy...@api.openoffice.org
with Subject: help

Reply via email to