Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Check string of characters?
Message
De
22/09/1998 06:49:12
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00138984
Message ID:
00139405
Vues:
14
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform