How do you extract a “Structure” that is inside of an Array container?
I am working with a container returned in the “returnvariable” attribute called “myQueryResult”.
<cfinvoke
component="cf_components.testcfc"
method="myFunction"
returnvariable="myQueryResult">
When I do a cfdump, inside of an array is a single record containing a Struct with the Key names of (UserID, Firstname, Lastname….) and their values. This is the result from a query in an invoked component.
I would like to do the following two tasks:
1) Extract the Structure(s) from the Array and display them.
2) Place these structures in their own collection so I can work with them more easily.
I’m a little rusty with my arrays; can you please help me out?
Thanks
I am working with a container returned in the “returnvariable” attribute called “myQueryResult”.
<cfinvoke
component="cf_components.testcfc"
method="myFunction"
returnvariable="myQueryResult">
When I do a cfdump, inside of an array is a single record containing a Struct with the Key names of (UserID, Firstname, Lastname….) and their values. This is the result from a query in an invoked component.
I would like to do the following two tasks:
1) Extract the Structure(s) from the Array and display them.
2) Place these structures in their own collection so I can work with them more easily.
I’m a little rusty with my arrays; can you please help me out?
Thanks