Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Microsoft Access > CountInstance()...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 2 Topic 30434 of 31576
Post > Topic >>

CountInstance() was a beautiful contribution by Doug Steele a few years back...

by MLH <CRCI@[EMAIL PROTECTED] > Jun 2, 2008 at 09:44 PM

Douglas j.Steele contributed Wed, Aug 11 2004 6:15 pm.
Replace$ is not available in A97. Chuck Grimsby took care
of that with his airing of the JoeReplace FN.

My Q here today is to Doug, in regard to the use of the backslash...

Is there ever an instance where
CountInstances = (Len(ToSearch) - Len(JoeReplace(ToSearch, ToFind,
vbNullString))) \ Len(ToFind)

would return a value different than
CountInstances = (Len(ToSearch) - Len(JoeReplace(ToSearch, ToFind,
vbNullString))) / Len(ToFind)
???

If not, is the wisdom behind the backslash just to produce result that
is one of the 3 Types returned by the backslash? This one-liner, BTW,
is one of my all time favorites. The simplicity of it is staggering.
Thanks again, three years later, for your excellent contribution.
 




 2 Posts in Topic:
CountInstance() was a beautiful contribution by Doug Steele a fe
MLH <CRCI@[EMAIL PROTE  2008-06-02 21:44:14 
Re: CountInstance() was a beautiful contribution by Doug Steele
"Allen Browne"   2008-06-03 20:55:21 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Tue Dec 2 23:03:02 CST 2008.