Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Extraneous zero in numeric textboxes.
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00022748
Message ID:
00022927
Vues:
38
>>>>There must be a workaround for numeric textboxes that tend to insert a zero where not wanted. If a user enters the textbox and types a non-zero number, an extraneous zero appears to the left of the decimal forcing the user to have to blank it out. I can I get around this?
>>>>
>>>>Thanks,
>>>>Steve Despres
>>>
>>>do you mean that .525 shows as 0.525?
>>
>>Hi Dave,
>>
>>What happens is this; numeric textbox is blank at form init,
>>when it receives focus and a user types a number in it, it looks like
>>this; 9 0.00
>>
>>Note the zero to the left of the decimal point. It's this zero that I need to go away. The user entered only a 9, not 90.
>>
>I know exactly what you mean. The following are solutions I've used:
>a) The user will learn to input data correctly, spacing over as needed for their entry or entering decimal appropriately. Even with control over where cursor begins, you can't know what magnitude the number is ahead of time to preset the cursor position.
>b) Make the field character and format it programatically, in some situations this is worth the effort.
>c) I've tried right-justified numeric input, but that also creates other problems.
>
>Maybe someone else has other ideas?

Hi Bruce,

Thanks, I'm glad that I'm not alone here. This is beginning to sound like a bug to me.

Steve
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform