I just replace the value like replace(val,",",".")


----- Original Message ----- From: "Paulo Augusto" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Saturday, February 11, 2006 12:56 AM
Subject: [Mono-list] Numbers with ","


In portuguese (in fact, every language i know except english), numbers
are separated by a "," comma, instead of by a "." dot.

So, when my mono program needs a number from an Entry():
Convert.ToSingle (string);
and then i want to pass that number to MySql through an sql string:
float.ToString();
results in a string that has a "," which brakes the sql string.

Anyone has any idea on what's the best way to handle this localisation
issue?

I tried working around it with:
string.Replace (char, char);
and
string.Replace (string, string);
to the resulting string but i think both are broken since they do not
work at all.

One would think this issue would be frequent but i do not seem to be
able to find any information at all anywhere about it.
_______________________________________________
Mono-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-list

_______________________________________________
Mono-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-list

Reply via email to