Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Hyphens in InputMask
Message
De
16/07/1999 10:11:47
 
 
À
15/07/1999 14:36:30
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00241875
Message ID:
00242289
Vues:
25
Al,

The "R" in the format code did the trick ! Interestingly, I did not have the "R" in my VFP3 version, yet it acted as though the "R" were there. VFP6 was not as forgiving.

Thanks.

>One way to handle this is:
>
>- use a C(10) field to store the number
>- use 999-999-9999 as the Inputmask (as you've already done)
>- use "R" as the Format code (ignore input mask). This causes the value to be stored in the field without the hyphens.
>
>>I have a TextBox for a phone number whose InputMask property reads '999-999-9999'.
>>
>>Under VFP3 this TextBox allowed the user to key in 2124567890 and it would display as 212-456-7890. The Value of the TextBox also would read '212-456-7890'.
>>
>>Now that I've upgraded the app to VFP6, the TextBox does not allow anything to be entered after the first 3 digits (e.g. 212).
>>
>>I can't find any documentation in either VFP3 or VFP6 that says you can use the hyphen in the InputMask the way I did. In fact, I can't remember what pocessed me to do it in the first place. Had I simply stumbled upon something undocumentated that worked under 3.0, but not under 6.0 ?
>>
>>- Werner
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform