>- see footer for list info -<
Yep.

<cfset mystruct = Structnew()>
<cfset mystruct.field1 = ArrayNew()>
<cfset mystruct.field1[1] = "whatever">

Etc

Russ 

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of dominic watson
Sent: 08 September 2005 12:08
To: Coldfusion Development
Subject: [CF-Dev] Arrays of a structure

>- see footer for list info -<
Is it possible to have an array of a structure? At the moment i have a
structure that contains arrays, i.e.

    mystruct.field1[0] = x
    mystruct.field2[0] = y
    mystruct.field3[0] = z

    mystruct.field1[1] = z
    mystruct.field2[1] = x
    mystruct.field3[1] = y

This is not nice as you have to make sure that each structure field has the
same amount of array elements and that they all relate, ugly. I would like:

    mystruct[0].field1 = x
    etc.

Is this possible in cf?

Thanks
_______________________________________________

For details on ALL mailing lists and for joining or leaving lists, go to
http://list.cfdeveloper.co.uk/mailman/listinfo

--
CFDeveloper Sponsors:-
>- Hosting provided by www.cfmxhosting.co.uk -<
>- Forum provided by www.fusetalk.com -<
>- DHTML Menus provided by www.APYCOM.com -<
>- Lists hosted by www.Gradwell.com -<
>- CFdeveloper is run by Russ Michaels, feel free to volunteer your help 
>-<


_______________________________________________

For details on ALL mailing lists and for joining or leaving lists, go to 
http://list.cfdeveloper.co.uk/mailman/listinfo

--
CFDeveloper Sponsors:-
>- Hosting provided by www.cfmxhosting.co.uk -<
>- Forum provided by www.fusetalk.com -<
>- DHTML Menus provided by www.APYCOM.com -<
>- Lists hosted by www.Gradwell.com -<
>- CFdeveloper is run by Russ Michaels, feel free to volunteer your help -<

Reply via email to