Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Fastest way to verify to similar characters
Message
 
 
To
16/10/2001 18:35:44
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00569344
Message ID:
00569352
Views:
19
>I need the fastest way to verify for similar characters in a variable. For example, I need to take action when I see a value such as "aaaaaaaa" or "bbbbbbbbbb". What's the best way to accomplish that?
lcStr = "bbbbbbbbbb"
IF LEN( STRTRAN(lcStr, LEFT(lcStr,1), "")) = 0
  * All characters in the string are the same
ENDIF
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform