Variable array definition.
Posted in 1991
> From: Dieter Becker <becker@sbuvax.rz.uni-sb.de> > Date: Tue, 7 May 91 14:10:08 +0200 > ... > To: informix-list@rmy.emory.edu > Subject: variable array sizes ??? > X-Informix-List-Id: <list.118> > > In 4gl You can define an array of records with static bounds: > X ARRAY [40] OF RECORD LIKE .... > What, when You a priori don't know how large this array must be? > ... > > Does anyone knows a chic solution? > > Thanks Dieter Becker Dieter, I needed a feature just like this the other day. Try as I might, I couldn't get it to work until the obvious occurred to me: This is why we can create temporary tables! IN your 4GL code create the temporary table with the structure of the desired array. Select the data into it. Retrieve what you need. Drop it when you are done. Best Regards ---------------------------------------------------------------------------- Jeff Cauhape cauhape@TWG.COM 415/962-7147 Room 224 (SneakerNet) "I haven't lost my mind. It's backed up on tape somewhere." ----------------------------------------------------------------------------