<cfset total_found = ListLen(VariableName, "\")>

That should do it ;)

Pablo
----- Original Message ----- 
From: "Bushy" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Thursday, August 07, 2003 1:23 PM
Subject: Counting number of occurences of a "\" (slash) within a variable?


> Hi,
>
> I need to check my URLDecode(dir) for the number of occurences of the "\"
>
> So for example, URLDecode(dir) is equal to D:\mywork\temp\dir and then add
the check into my <cfif statement.
>
> Below is what I have so far. I need to add another check on the <cfif
statement to see if two or more "\" appear in the URLDecode(dir)
>
> <cfif FindNoCase(URLDecode(dir),SESSION.DisplayShowMe)>
> ....badda bing...badda boom....
> </cfif>
>
> Thanks
>
>
> 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq

This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
http://www.cfhosting.com

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to