Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Input Mask & 'A'
Message
 
À
07/03/2003 01:28:00
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00761897
Message ID:
00762842
Vues:
14
>hello marshal,
>
>is "SA" a default value? i guess one way you can do that is to put "SA" in your default value.

Hi all,

There doesn't seem to be a way to override the InputMask code.
Fortunatly since the 'A' is at the beginning of Textbox field, I've used the following trick to give me a 'psuedo' InputMask.

1. Set SelectOnEntry for the Textbox to .F.
2. Set the Value of the Textbox to 'SA'
3. Put Code in the GotFocus event of the Textbox which sets the SelStart & SelLength properties, in this case:
.SelStart = 2
.SelLength = 7

If the A character is in the middle of the field, this won't work.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform