capital L
Lerebours, Jose
Jose.Lerebours at EagleGL.com
Wed Feb 15 06:16:42 PST 2006
John posted:
> I understand that using the COMPARE() function can get this
> job done as a
> couple people have suggested. What I *don't* understand is
> why using the
> character string value of "L" does NOT work.
>
>
> ::end:
> @keyT:'@keyt::
> ::aa="aabcdefglabcdefgiiiL":
> ::b(2,.0)=instr(aa,chr("76")):
> ::show "@" <b:
>
> gives: 9
>
> Why?
>
I am not sure if the question is meant to be:
a) Why does it return 9 instead of 20?
b) Why can't original poster simply use instr()?
As far as question a), I do not know. I do know, that filePro
has never been case sensitive while handling strings, variable
names, arrays, lookup aliases.
In the other hand, question b) can be answered if one were to
believe that the original question specifically needed to
distinguish between upper and lower case.
Before compare() came about, I used asc() to compare characters.
Heck, some of my programs still have active routines where this
is the case (too lazy to change them all). These routines are
mostly where passwords are enforced to allow/deny access ...
Regards;
Jose Lerebours
More information about the Filepro-list
mailing list