There is no hard best case code, you code to get the job done at the time.
You later always find ways to improve the code later. When creating
structured arrays, it easier in defining and setting up that you use
array[n].element, however you could also create a nested structure to
incorporate the array for example struct.array[1] then be able to create a
new struct off the last array.

This example you have shown, will depend on your task at hand, like I said
there is no hard or fast or even correct ways to code. Whatever works for me
at the time is the one that ususally remains in the application, unless it
is to slow to work and needs tweaking to speed things up a bit.


regards

Andrew Scott
Senior Cold Fusion Application Developer

-----Original Message-----
From: Deva Ramesh [mailto:[EMAIL PROTECTED]]
Sent: 23 October 2000 13:09
To: CF-Talk
Subject: RE: uregent(difference between two logics)


No James

I think u r not understand my problem
Actually I want to send query results into structure ( that is my program
specs like that)( this is customtag)
while creating structure of arrays i used two different logics. 
but i want answer from that which one is best one.

Thanx
Ramesh

-----Original Message-----
From: James Sleeman [mailto:[EMAIL PROTECTED]]
Sent: Sunday, October 22, 2000 5:44 PM
To: CF-Talk
Subject: Re: uregent(difference between two logics)


---Reply to mail from Deva Ramesh about uregent(difference between two
logics)

> Hi All
> 
> 
> Actually i have small doubt.
> Can any one clarify which one is best logic and pls before justifying the
> answer i want disadvantage for other one also..
> 
> Here i am trying to retrive query results into structure.
> 

You DO realise that you can use access a query in the way you want already
don't you ?  For example...

    <CFQUERY DATASOURCE="#ds#" NAME="Q_MyQuery">
        SELECT ClientName, ClientNumber FROM Clients
    </CFQUERY>

    <CFOUTPUT>
        The first name from the query is #Q_MyQuery.ClientName[1]#, that
clients number is #Q_MyQuery.ClientNumber[1]#.
    </CFOUTPUT>

---
James Sleeman
[EMAIL PROTECTED] (home)
[EMAIL PROTECTED] (work)


----------------------------------------------------------------------------
--------------------
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists or send a
message with 'unsubscribe' in the body to [EMAIL PROTECTED]
----------------------------------------------------------------------------
--------------------
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists or send a
message with 'unsubscribe' in the body to [EMAIL PROTECTED]
------------------------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists or send a message 
with 'unsubscribe' in the body to [EMAIL PROTECTED]

Reply via email to