run a structKeyArray() or structKeyList() function on variable.structure. it will return an array (or a list) of the keys in the struct, and you can loop over that.
On Thu, 4 Nov 2004 16:38:47 -0000, James Smith <[EMAIL PROTECTED]> wrote: > OK, Stupid question time... > > I have a structure in the form "Variable.Structure.Reference" that I need to > access, however "Reference" is an array (which I can loop with arraylen, no > problem there) but it's name changes depending on form input. > > If I know the name (ie: in testing) I can get the first value from the array > with "Variable.Structure.Reference[1]" however in the real world I do not > know the name of the array, or if it exists at all. Is there some other way > I can reference it? > > I tried "Variable.Structure.[1][1]" with no joy but there must be something > similar. > > Any help? > > -- > James Smith > [EMAIL PROTECTED] > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net http://www.cfhosting.net Message: http://www.houseoffusion.com/lists.cfm/link=i:4:183370 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54