</cfloop>
<cfloop list="#structKeyList(myStruct)#" index="keyName">
</cfloop>
The former is simpler, the latter lets you control the iteration order by
inserting a listSort function, if you need that.
Cheers,
barneyb
> -----Original Message-----
> From: Andrew Scott [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, February 11, 2004 7:14 PM
> To: CF-Talk
> Subject: Structs
>
> Hi all,
>
> This has probably been asked before, but for the life of me I
> can't seem to
> work it out brain strain...
>
> I have a struct, with unknown keys or dynamically created. I
> need to loop
> over these via collection is that correct to get at the
> values for this
> key...
>
> All help would be appreciated thanks.
>
> Regards
> Andrew Scott
> Technical Consultant
>
> NuSphere Pty Ltd
> Level 2/33 Bank Street
> South Melbourne, Victoria, 3205
>
> Phone: 03 9686 0485 - Fax: 03 9699 7976
>
>
>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

