capital L

Kenneth Brody kenbrody at bestweb.net
Wed Feb 15 06:30:18 PST 2006


Quoting Lerebours, Jose (Wed, 15 Feb 2006 07:19:10 -0600):

> Jeff wrote:
> >
> > > Using windows and filepro 5.0
> > >
> > > How do I identify the occurrence of a capital L
> > >
> > > ie = instr(ua, "L","1")   identifies any l not just
> > > capital L
> > >
> > > Thanks in advance>
> >
> > Check out the COMPARE command.
>
> To use the compare() function, you will need to use
> a loop to check each character within the string.
>
> Here is a simple routine that will do just that:
[...]

Or, you can combine the two.  Use instr() to find L's (capital and
lowercase) and then COMPARE to see if the character is a capital L.
That should be much more efficient than checking every character.

--
KenBrody at BestWeb dot net        spamtrap: <g8ymh8uf001 at sneakemail.com>
http://www.hvcomputer.com
http://www.fileProPlus.com


More information about the Filepro-list mailing list