Fw: [Mono-list] Numbers with ","
mysql.jorge at decimal.pt
Sat Feb 11 06:11:39 EST 2006
I just replace the value like replace(val,",",".")
----- Original Message -----
From: "Paulo Augusto" <PauloMorfeo at portugalmail.pt>
To: <mono-list at lists.ximian.com>
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:
> 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
> I tried working around it with:
> string.Replace (char, char);
> 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 - Mono-list at lists.ximian.com
More information about the Mono-list