Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Searching for characters
Message
From
24/01/2003 08:39:12
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
24/01/2003 08:34:00
Henry Ravichander
RC Management Systems Inc.
Saskatchewan, Canada
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00744971
Message ID:
00745038
Views:
26
>Hi Hilmar:
>
>Thank youf ro your response. It worked. How can this be modifed to check if characters appear in the entire string?

Of course, you could write a loop for the entire string, but that would be slow.

I think you can use chrtran(), something like this:
if upper(chrtran(MyString, AllLetters, "")) # upper(MyString)
  * ...
endif
Please note that I forgot upper() in my previous sample code.

HTH, Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Reply
Map
View

Click here to load this message in the networking platform