Wouldnt it be easier to do sconvert it to an array and get the highest
and lowerst?

<cfscript>
        lItems = "4.00,6.00,9.00";
        aItems = ListToArray(lItems);
        
        dMax = DecimalFormat(ArrayMax(aItems));
        dMin = DecimalFormat(ArrayMin(aItems));
        
        WriteOutput("The Max Value is:" & dMax & " The Min Value is " & dMin);
</cfscript>



On 06/12/05, Paul Vernon <[EMAIL PROTECTED]> wrote:
> > If i have a Value list of prices for an item like...
> >
> > 4.00,6.00,9.00
> >
> > How would I pull out the low and the high one only?
>
> Convert to a query and then SELECT MAX and SELECT MIN using QoQ? How long is
> the list?
>
> Paul
>
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:226162
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to