Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Formatting numaric field in grid.

Status
Not open for further replies.

newtofoxpro

Programmer
Sep 16, 2007
301
IN
How to show num field like transform(-252,"@ZXC 99999999.99")

Best Regards.
 
Set the Controlsource to (Transform(numfield,"@ZXC 99999999.99")), in the outer brackets.

Or you set the Text1.InputMask to 99999999.99 and Text1.Format to ZXC, that should also do.

Bye, Olaf.


 
Olaf said:
Or you set the Text1.InputMask to 99999999.99 and Text1.Format to ZXC, that should also do.

Actually, isn't it the column's InputMask or Format that you should set, rather than the textbbox's? At least, that's what I've always done.

Mike



__________________________________
Mike Lewis (Edinburgh, Scotland)

Visual FoxPro articles, tips and downloads
 
I think both works, but perhaps you're right, you also rather set the controlsource at the column instead of the columns controls.

Bye, Olaf.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top