[thelist] CFTRY/CFCATCH

Matt Liotta mliotta at iname.com
Tue Mar 26 12:33:01 CST 2002


BTW, you should really avoid using ListGetAt() because it is horribly slow.
Consider using ListToArray() and then use array indexes instead.

-Matt

On 3/26/02 10:04 AM, "Starkey Connie - cstark" <Connie.Starkey at acxiom.com>
wrote:

> In the following code, I want to look at the volume discount percent and
> amount fields and if they are blank, to default them to 0's. I was
> considering using CFTRY/CFCATCH.  Can someone tell me if there is a better
> solution?
>
>
> <cfloop index="x" from="1" to="#length#">
> <cfset ItemCodes = ListGetAt(#qBillingView.ItemCodes#,x)>
> <cfset ItemPrices = ListgetAt(#qBillingView.ItemPrices#,x)>
> <cfset Percent = ListgetAt(#qBillingView.volumediscountpercent#,x)>
> <cfset Amount = ListgetAt(#qBillingView.volumediscountamount#,x)>
> <cfset ItemCodeDescription =
> ListgetAt(#qBillingView.ItemCodeDescription#,x)>
>
>
>
> ********************************************************************
>
> The information contained in this communication is
> confidential, is intended only for the use of the recipient
> named above, and may be legally privileged.
> If the reader of this message is not the intended
> recipient, you are hereby notified that any dissemination,
> distribution, or copying of this communication is strictly
> prohibited.
> If you have received this communication in error,
> please re-send this communication to the sender and
> delete the original message or any copy of it from your
> computer system. Thank You.




More information about the thelist mailing list