Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Avoid special chars in data entry
Message
De
23/08/2005 10:09:54
 
 
À
23/08/2005 09:37:16
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
01042890
Message ID:
01042906
Vues:
24
Mark

If your mask is "X" - any character, then the InteractiveChange event of the textbox can be used, with INKEY(), to test for and trap any "special" chars, i.e. not within your range.

Alternatively, you could wait till they finish and the .Valid event could check through the string, using similar.

Having said this, Sergey will probably now cite a ready-made for this :-)

Anyway, HTH

Terry

>Hi. I have first name/last name fields. and I only want to allow letters,digits and space there. no special chars. i.e. comma,semicol etc.
>if i use 'N' in inputmask it allows letters and digits but no space.
>can you help me with this? thanks in advance. appreciate.
- Whoever said that women are the weaker sex never tried to wrest the bedclothes off one in the middle of the night
- Worry is the interest you pay, in advance, for a loan that you may never need to take out.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform