Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP5 - 12 0.00 gets 120.00 in numeric object
Message
De
30/07/1998 00:05:31
Larry Long
ProgRes (Programming Resources)
Georgie, États-Unis
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00121694
Message ID:
00122592
Vues:
21
I fixed this problem by putting
THIS.SETFOCUS()
in the click method.
//:^)

>>Jim,
>>
>>The wording of your response suggests that VFP 5 handles a numeric textbox incorrectly.
>>
>>DO you know if this is fixed in VFP 6.0?
>>
>>Regards,
>>
>>Jim N
>
>Jim,
>
>I don't think VFP5 handles numeric values in textboxes incorrrectly, just not necessarily the way we might want it to. Ther problem has to do with the value not being selected when the user starts typing. It usually show up if the mouse is us3ed to get to the textbox. With a tab ito the textbox the SelectOnEntry property will contrl the selection adn any typing would overwrite the current value.
>
>But using the mouse causes the insertion point to occur exactly where the mouse was clicked, this is by design because it allows the user to click right on an error and fix it easily, rather than typing the entire value again. The behavior is fine for character values, adn is even desirable. However, for numeric values it shows the behavior stated in the original question in this thread, that is the digits typed are concantenated to the existing value.
>
>The simple solution is use the Click to set the selstart and sellen properties to force selection of the entire value. However, the samples in the library allow the digits to enter from the right, like a calculator, with the option of having a fixed decimal or having the user type the decimal.
L.A.Long
ProgRes
lalong1@charter.net
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform