Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Searching for characters
Message
From
25/01/2003 15:29:56
Henry Ravichander
RC Management Systems Inc.
Saskatchewan, Canada
 
 
To
24/01/2003 10:30:15
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00744971
Message ID:
00745440
Views:
21
>Henry, I see that Hilmar has already provided a solution. This might also help. The following will return .T. if cString1 does not contain any of the chars in cString2:
>
>cString1 = "Your source string"
>cString2 = "Chars to test for"
>
>? EMPTY( CHRTRAN( cString1, CHRTRAN( cString1, cString2, "" ), "" ) )
>
Hi Jos:

This is a neat idea too and will actually check the entire string for characters. Thanks.
- Ravi

True greatness consists in being great in little things.
- Charles Simmons
Previous
Reply
Map
View

Click here to load this message in the networking platform