Re hashing tip

Joe Chasan joe at magnatechonline.com
Tue Jan 15 10:38:21 PST 2008


On Tue, Jan 15, 2008 at 01:29:25PM -0500, Fairlight wrote:
> On Tue, Jan 15, 2008 at 01:20:59PM -0500, GCC Consulting, the prominent pundit,
> witicized:
> > Just quoting what was there.
> > 
> > Also, instr will "replace" characters where this will tell you where the
> > first instance is.
> 
> I don't get that.  INSTR is not documented as having a fourth field, which
> would be necessary to do replacements.  -All- it's used for is finding
> substring matches, according to the docs.  Where are you seeing docs that
> say otherwise?

INSTR will not replace characters.  (maybe someone is confusing it with
XLATE?)

as far as when to use INSTR and when to use STRTOK - from the cabe help
file:

"STRTOK is different from the INSTR() function in that it
will return the first occurrence of any of the specified
characters, not a string of characters."

e.g. INSTR will search for only one specific character or pattern at
a time, and STRTOK will search for any of a set of charaters - no requiring
matching the entire set - but a single match on any one of them.
 
-joe

--
-Joe Chasan-                           Magnatech Business Systems, Inc.
joe - at - magnatechonline -dot- com   Hicksville, NY - USA
http://www.MagnatechOnline.com         Tel.(516) 931-4444/Fax.(516) 931-1264


More information about the Filepro-list mailing list