off the top of head
-
Cfset stringToFind = test
cfset startPos = 1
cfset foundCount = 0
cfloop from=1 to=1000 index=i step=1
cfif FindNoCase(stringToFind,cfhttp.fileContent,startPos)
cfset foundCount = incrementValue(foundCount)
I located a simple UDF at CFLIB.
Thanks
-Original Message-
From: Neil Middleton [mailto:[EMAIL PROTECTED]
Sent: Friday, July 18, 2003 9:13 AM
To: CF-Talk
Subject: RE: Count string occurances in an html file.
off the top of head
-
Cfset
Hmm, hadn't thought of doing that way...quite neat
Neil
-Original Message-
From: Bosky, Dave [mailto:[EMAIL PROTECTED]
Sent: 18 July 2003 14:28
To: CF-Talk
Subject: RE: Count string occurances in an html file.
I located a simple UDF at CFLIB.
Thanks
3 matches
Mail list logo