Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Left zeros
Message
De
03/09/2007 13:28:20
 
 
À
03/09/2007 09:59:47
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Divers
Thread ID:
01251899
Message ID:
01252016
Vues:
18
>>>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform