Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
2 digits number with 2 decimal
Message
From
06/05/2004 22:00:54
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
06/05/2004 21:51:00
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00901812
Message ID:
00901815
Views:
13
>Peace!!!
>i am using a grid for my data entry(updating). and i have this column which im going to input a numeric value with 2 decimals. my problem was, when the grid activated, the initial value of the said column is ".00". so what i did was, i changed the data type into a currency. pls. show me some sample code... thanx...

What do you want for the initial value?

You can change the format with the .InputMask property. You may have to assign the same property both to the column and to the TextBox; I am not completely sure, though.

You can have a value other than 0 by assigning a default value to the field, or, for example, if you have a button to add a record, after the APPEND BLANK you would need a REPLACE. It really depends how you add your records, though.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Reply
Map
View

Click here to load this message in the networking platform