Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP5: Changing Input Mask
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00210555
Message ID:
00210621
Vues:
29
>I want to change the Input mask of the zip code if the user types in more than 5 characters. I have tried everything (except that which works). Any ideas?
>DLC

Here you go, Dave:
if len(alltrim(this.value)) = 5
  this.value = this.value + '-'
  this.inputmask = 'xxxxx-xxxx'
  this.selstart = 6
endif
In gotfocus, set mask back to ''...
The Anonymous Bureaucrat,
and frankly, quite content not to be
a member of either major US political party.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform