Mid(getdon.recordcount,2,1)

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 10, 2008 8:21 AM
To: CF-Talk
Subject: Get a digit out of large number

Hi All,

I'm trying to figure out how to grab a specific digit in a number.  For
example if I have 34859, I want to grab the third digit from the right or 8
for evaluation.  How do I do this?

I've got so far ...

<CFSET digits = len(getdon.recordcount) > to get the number

The I could use right with a count but when I get to the second digit, right
includes the the last and second to last digit.

Thanks.



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:300849
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to