Well, it is a matter of opinon as you say but this seems quite readable to me:
<cfset MyQuery = QueryNew("SomeColumn,SomeOtherColumn")>
<cfset QueryAddRow(MyQuery,2)>
<cfset MyQuery["SomeColumn"][1]="Whatever">
<cfset MyQuery["SomeOtherColumn"][1]="Whatever else">
<cfset MyQuery["SomeColumn"][2]="Whatever 2">
<cfset MyQuery["SomeOtherColumn"][2]="Whatever else 2">
It does require that you add a row or you know haw many rows you need,
which is one drawback over the struct of arrays idea I guess.
On 5/31/07, David Gardner <[EMAIL PROTECTED]> wrote:
> cause the data is not coming from a database... at least in the cases
> where i would use this technique. and to create the query manually is
> less readable imho.
>
> On 5/29/07, James Holmes <[EMAIL PROTECTED]> wrote:
> > Why not just use a query?
--
mxAjax / CFAjax docs and other useful articles:
http://www.bifrost.com.au/blog/
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
ColdFusion MX7 and Flex 2
Build sales & marketing dashboard RIAâs for your business. Upgrade now
http://www.adobe.com/products/coldfusion/flex2?sdid=RVJT
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:279728
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4