Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Format function for number
Message
From
16/01/2001 13:49:37
 
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00464207
Message ID:
00464316
Views:
19
>>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,
Previous
Reply
Map
View

Click here to load this message in the networking platform