Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Format function for number
Message
 
 
À
16/01/2001 11:26:42
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00464207
Message ID:
00464316
Vues:
20
>>Here's an easy one: How do I left justify a (numeric) number in a textbox control on a form - so it has no space before? I assume some format function - but I cant get it to work... THANKS SOMEONE!
>
>In the init event of the control put:
>
>This.value = transfo(mycursor.nValue)

There is an easy one, indeed, but with a drawback (never a free lunch!):

Set the column alignment to middle left. The gotcha is that when a cell got foucs the number is right aligned. It goes back to the left when the focus is lost. But you can argue that is cool to shake it ! 8-)

Maybe you can avoid this with a little tweaking.

Hope this helps,
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform