Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Modify InputMask
Message
 
À
05/05/2000 10:12:34
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00366553
Message ID:
00366560
Vues:
16
>Hi All,
>
>In one of my apps I have a mixture of US and Canadian zipcodes.
>
>I'm trying to setup the InPutMask for the ZipCode field to accommodate the US format if zipcode field = 9 digits. The first example dosen't work because "InputMask" is unknown. The second just dosen't work.
>*
>IF LEN(RTRIM(ThisForm.PageFrame1.Page1.txtIns_Zip.Value)) = 9
>1. ThisForm.PageFrame1.Page1.txtIns_Zip.InputMask.Value = '99999-9999'
>2. Transform(ThisForm.PageFrame1.Page1.txtIns_Zip.Value,'99999-9999')
>ENDIF
>ThisForm.Refresh()

Inputmask does not have .value after it, it is a property all by itself.

ThisForm.PageFrame1.Page1.txtIns_Zip.InputMask = '99999-9999'
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