structured array

<cfscript>
returnStruct = ArrayNew(1);
returnStruct[1] = structNew();
returnStruct[1].RequirementsTitle = "mySearch";

and so on

just create a new array for each section

now

if you want to keep it in that order, you may have to embed a second array
to keep the items in order

Steve



-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Carl
Sent: Tuesday, August 10, 2004 11:54 AM
To: CFAussie Mailing List
Subject: [cfaussie] CFLOOP Split


Can someone give me some tips on how to do this please :-)

This is a CFC called config.cfc

<cfquery qGetSiteConfig>
Config_Name,
Config_VariableName
FROM siteConfig
</cfquery>

and yes I have set the vars for stReturn
<cfset stReturn.data = qGetSiteConfig>

which cfdumps like this..
CONFIG_NAME - CONFIG_VARIABLENAME
1 RequirementsTitle -  mySearch
2 Requirements1  - myDescription
3 Requirements2  - myProfile
4 Requirements3  - myNotes
5 ProposedTitle  - myFriends
6 Proposed1  - myResume
7 Proposed2  - myProfile
8 Proposed3  - myObservation
9 Proposed4  - myVideo


What I want to do is get this from a CFC to a page and then put it into
either a list/structure/array...I want to break it up into 2 lists...

but I want to make it variable so it does not matter on how many
elements there are in either list...could be 2 Requirements and 12
Proposed elements...


CONFIG_NAME - CONFIG_VARIABLENAME
List 1
1 RequirementsTitle -  mySearch
2 Requirements1  - myDescription
3 Requirements2  - myProfile
4 Requirements3  - myNotes

CONFIG_NAME - CONFIG_VARIABLENAME
List 2
5 ProposedTitle  - myFriends
6 Proposed1  - myResume
7 Proposed2  - myProfile
8 Proposed3  - myObservation
9 Proposed4  - myVideo


any help would be appreciated..

Thanks

Carl

---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to
[EMAIL PROTECTED]
Aussie Macromedia Developers: http://lists.daemon.com.au/



---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
Aussie Macromedia Developers: http://lists.daemon.com.au/

Reply via email to