Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Strange behavior of the textbox with the amount
Message
De
19/01/2006 13:35:46
 
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:
01088564
Vues:
12
>>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"
If you add two more lines, you can subclass it as "numEditbox"
if empty(this.controlsource)
  this.AddProperty('nTextValue',0)
  this.ControlSource="this.nTextValue"
endif
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform