Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
'99 min.' shows up as 99 miN.
Message
De
09/04/1997 10:21:55
 
 
À
09/04/1997 09:30:59
Gino Miceli
Lan Professionals, Inc.
Bay Shore, New York, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00027278
Message ID:
00027583
Vues:
32
>>Gino,
>>
>>Really unclear of what you're trying to do, but Barbara's suggestion sounds like what you're trying to do.
>
>It's quite simple, actually.. I want the string ' min.' to follow the number of minutes in a field when it is being displayed. I could put in the DBC an InputMask of "99 min.". So for example, a value of 25 would be displayed in a BROWSE or a TextBox as "25 min."... my problem was it was showing up as "25 miN.".. I ended up scratching the idea and putting the "min" part in a label next to my textbox (less robust, but it works.)

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
Edward Pikman
Independent Consultant
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform