Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
TextBox values
Message
 
 
À
04/05/2000 16:36:34
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00366289
Message ID:
00366412
Vues:
14
Set the value property of the textbox to 0 in the property window - that will tell VFP that the value should be numeric.

If you dont want to see the zero in the textbox, set the format of the textbox to blank if zero.

Rick

>>Couple of things may be wrong with what you are doing. Are your controls bound to the data? You should be able to use the same form to edit as you do to enter. If not you could use val() to convert a string to a number but you shouldn't need to do that.
>
>The control is not bound to the data.
>
>The field data is numeric, but when it gets into the textbox it's turned to a character. The value is 123.45 and the display in the textbox is "123", and at that point it refuses to take a decimal point.
>
>I suspect I am doing something wrong but don't know what. Is there something I need to do to make the textbox control "numeric"?
Rick Hodder
MCP Visual Foxpro
C#, VB.NET Developer
Independent Consultant
www.RickHodder.com
MyBlog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform