StrataFrame Forum

Decimal Fields don´t accept Comma.

http://forum.strataframe.net/Topic29335.aspx

By Marcio Valerio Silva - 1/10/2011

My textboxes binding from decimal fields don´t accept commas!

How to resolv this problem?
By Ivan George Borges - 1/11/2011

Hi Marcio.

How is your Regional Settings configured?

And also, what is the chosen Active Language while you are running the application?
By Marcio Valerio Silva - 1/11/2011

You can help me saying how to do it.

A simple sample code hep me a lot.

-------------------------------------------------------------

Você poderia me ajudar em como faze-lo?

Um simples exemplo de código me ajudaria muito, pois não estou conseguindo encontrar o caminho e todos os meus campos numéricos decimais não aceitam virgula ficando somente os campos textos que a aceitam.

Detalhe o ponto tambem não é aceito, o que me deixa intrigado, que no caso de não aceitar virgula deveria aceitar o ponto como separador decimal.
By Trent L. Taylor - 1/12/2011

Are you using a masked textbox?  I am not sure if you are trying to have your binding just show the commas or to show the commas as well as be part of the entry.  In .NET and binding, you can use formatting that will show the comma.  In the BindingFormat property of a StrataFrame textbox, you can put the "nX" value to just show a command and decimals.  You can reference the String.Format documentation and formatting values in the .NET documentation for more of the supported values.  But in short, if you wanted to show commas and 2 decimals, you would put this:

n2


Otherwise, look at the masked textbox to see if this is a better fit for your needs.
By Marcio Valerio Silva - 1/12/2011

Hi Trent,

My text boxes are showing a Decimal right, but the keyboard doesn´t accept the Comma.

When I press the key "," or "." them doesn´t enter in text box. It´s occur only in strataFrame numeric fields (Decimals or not).

I need that Comma(",") neither point(".") can be used to insert decimal values ex: "1,22".

Sample in Attach
By Marcio Valerio Silva - 1/12/2011

The Trent was right! I did how He said.

It´s work now!

Sorry Trent I have to study a lot of English !
By Ivan George Borges - 1/12/2011

Don't worry, Marcio.

I am teaching Portuguese to Super Man. BigGrin
By Trent L. Taylor - 1/13/2011

I am teaching Portuguese to Super Man


Still waiting on the motivation BigGrin
By Rogerio Mauri - 1/22/2011

Still waiting on the motivation BigGrin


Sooner or later...Smile