Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Input mask help
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Divers
Thread ID:
00033432
Message ID:
00033433
Vues:
40
>I know there's a way to do this.
>
>I want the inputmask to say '999 mg/min' but VFP 3.0 keeps recognizing
>the N as a command code and capitalizes it. Wasn't there a way to do this with the R command code?
>
>TIA

It was UT thread 09/04/97 finished with:
>>Gino, I got couple minutes to test your problem and what I found:
>>1. VFP really doesn't like to have 'n' within inputmask expression.
>>But
>>2. This is way to work around:
>>Text1.Init event:
>>this.format="R"
>>this.inputmask="99 min."
>>this.value=space(2)+"n"
>>
>>Text1.InteractiveChange event:
>>if substr(this.value,3,1)"n"
>> this.value=left(this.value,2)+"n"
>>endif
>
>
>Thank you very much for taking the time to look at the problem. Does this code also work if the field is
Numeric? By the way, your last reply was also very helpful.
>
> Thanks
> - Gino

I see that character type is more appropriate. You always can transform it into numeric when saving the record.

HTH.
Edward Pikman
Independent Consultant
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform