Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Comparing strings
Message
De
17/11/2006 07:38:16
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Comparing strings
Versions des environnements
Visual FoxPro:
VFP 8
OS:
Windows XP
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01170633
Message ID:
01170633
Vues:
53
Hi there,

I'm having problems figuring out wildcards for string comparisons.

I have a WorkType variable that is a string. It always starts with PM and then a 2 digit number. So I want to have an if statement checking it's valid. i've used this code and it doesn't work:

If WorkType != "PM##"
lcErrorMessage = lcErrorMessage + "Work type is invalid..."
Endif

So when valid WorkType come in (e.g. PM03, PM14) they are failing.

Any help would be much appreciated
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform