Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Check string of characters?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00138984
Message ID:
00139405
Views:
13
>vfp 3.0 win 95
>
>I need to compare a string of characters typed into
>a text box.
>
>Say for example Q7428-452-6587-1234
>
>I need to check alpa and numeric characters in a specific
>order. I want the form to check for this string before it
>will run the form.
>

If your separator character is always the same, and is not a legal character in other locations in the string, you can always use CHRTRAN() to strip it - for example, in your case:

cMyStringToCheck = CHRTRAN(cMyStringWithSeparatorCharacter,'-',SPACE(0))
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Reply
Map
View

Click here to load this message in the networking platform