Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem with a zero in text box
Message
De
25/05/1997 05:10:43
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00032989
Message ID:
00033568
Vues:
52
> > > > >always that way. Now when I press decimal point, tab or enter, I > > expect > > >to get " 6.00" but no, I get " 60.00". > > This is the expected behaviour. > > If the field is fully selected when you start typing, the you replace > all of the selected text. This is what you want. > > If the field is not selected, then you simply add to what's already > there. For example, in a text box if you want to change "Hello" to > "Hello World", you move to the end of "Hello" and type " World". The > same thing happens here, just that it's interpreted differently, since > it's a numeric field. > OK, I'll set my class to start selected if the value type is numeric, but this is not expected behaviour, since in that way it is not compatible with any of the previous versions. In all the previous versions, if you typed a digit or two and a decimal point after them, you got what you typed, regardless of what was in the textbox before. I've tried to have it selected, and it seems to work OK, but still seems rather funny. Nevertheless, it allows blind typing, which is what I wanted.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform