Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Removing extra spaces and limiting input to A-Z, 1-0, an
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01159441
Message ID:
01159499
Vues:
18
>>Are you saying that the subset of invalid characters is limited too? I thought it's unlimited, since we can have chars in different languages...
>>
>>Anyway, if you want to check, if your string has invalid chars, all you have to do is:
>>
>>If not empty(lcString,lcAllowedChars,"")
>>   ** You have invalid chars in the string
>>endif
>
>I agree, but his original post was referring specifically to A-Z,1-0, so I threw-out the option of foreign language characters.

That's just shows how can I be double sided depending whos code we're discussing <g>

If it's our company code, it's OK to assume only English chars, but otherwise I need to consider all possibilities <g>
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform