Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Left zeros
Message
From
03/09/2007 13:28:20
 
 
To
03/09/2007 09:59:47
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
01251899
Message ID:
01252016
Views:
19
>>>How can I put zeros at left side of a field in a grid ?
>>
>>You must use a spinner or a text box as the field control.
>>In the format property of that control you must do something like:
>>
>>    form1.grid1.column1.text1.format = "LLLL.LL"
>>    form1.grid1.column1.text1.inputmask = "9999.99"
>>
>>
>>Of course you can do that visualy, but you got the idea...
>>
>>But this will not put the value 0004.56 at the table field, the table will hold 4.56 as usual, but when this value is displayed in the grid, it will be seen like 0004.56.
>>
>>Note: the ControlSource property must be of numeric type in order to the format clause LLLL.LL work.
>
>Actually, just one L in the .format should do.

Yeah, i know!
But i like to do it that way. For me it's easier to read the code.

Joaquim
Previous
Reply
Map
View

Click here to load this message in the networking platform