Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Strange behavior of the textbox with the amount
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01088067
Message ID:
01088536
Vues:
14
>>>Hi everybody,
>>>
>>>We have textboxes on different forms, which seem to exibit the same strange behavior. The textboxes are unbound, have $ as format and 9,999,999.99 in InputMask (set in design time). Now, if you press the Enter, the cursor moves to the next control. You go back to that textbox and press Enter again and one of the digit disappers. In other words, each time you go back to the control and press Enter, one of the digits will vanish.
>>>
>>>Do you know why is that?
>>
>>That "bug" has been around for a while. Good to see you using unbound text boxes. Sergey shared this with me when I had a question much like yours - I use it all the time - store it in the controls init event:-)
this.AddProperty('nTextValue',0)
>>this.ControlSource="this.nTextValue"
>
>Found the thread Re: Enter key zeros out edit change to textbox Thread #935276 Message #935358

What would life be like without Sergey!:-)

Numeric fields is the only place it should be used. With suclassing you should be more efficient than I.
Imagination is more important than knowledge
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform