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 danielledunham on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Format not working

SitesMasstec

Programmer
Joined
Sep 26, 2010
Messages
604
Location
Brasil
Hello collegues!

I have a Grid in a form with many columns. One of the columns is to display a numeric value, but it is not formatting values in that column.

Please see the design and then the form being executed:

GridFormat.jpg


Neither it is centering text:

GridFormat2.jpg

What is wrong?

Thank you.
 
Last edited:
The alignment setting is a property of the column, not the text.
 
Nice Kiyo, thenk you.

And what about the number formating? I need 1450,00 to appear 1.450,00 . I just don't understand why the data does not obey the Format property.
 
Hello Kiyo!

I put 9,999,999.99 in the InputMask in the Text property, and it displays pontuation only for cents, not for thousands.

But then I changed to the Column property (as you had told in a post above about Alignment setting) and it works fine.

Thank you!
 
Last edited:
Hi,

You have to check your setting of SEPARATOR in Tools - Options - Regional and even may have a look at the help file under : SET SEPARATOR

hth

MarK
 
Hello Mark!

Yes, the settings are correct for the currency in my country, but I know I have to use 9,999,999.99 inside Properties, and the settings display correcty a value, i.e. 1.234,50.
 
I have written 999,999.99 in the inputmask of the column properties.
 
This is example for decimal separator "." and space for thousend and milions.

inputmask.jpg
 

Part and Inventory Search

Sponsor

Back
Top