Re: Open Ended Arrays or Similar Data Structures

Hal Vaughan <[email protected]> Tue, 21 Jun 2011 11:59:09 -0400
Newsgroups gmane.comp.openoffice.devel.api
Message-ID <[email protected]>
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 cur=
rent array.  Now I'm straight on that.


Hal

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

> Hello Hal,
>=20
> On Saturday 18 June 2011, 23:35, Hal Vaughan wrote:
>> Is there any way, in OOo BASIC, to create something like a vector or lin=
ked
>> 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.)
>=20
> search in the OOo help "ReDim"
>=20
> Sub Test_Array
> 	Dim arr(0) as Integer
> 	arr(0) =3D 0
>=20=09
> 	Dim i%
> 	For i =3D 1 To 10
> 		ReDim Preserve arr(i)=20
> 		arr(i) =3D i
> 	Next
> End Sub
>=20
>=20
> Regards
> --=20
> Ariel Constenla-Haile
> La Plata, Argentina

--=20
-----------------------------------------------------------------
To unsubscribe send email to [email protected]
For additional commands send email to [email protected]
with Subject: help