[Gtk-sharp-list] Entry.text to integer: Invalid format.

Jonathan Hernández Velasco consolas@iespana.es
Fri, 16 Apr 2004 21:08:30 +0200


--=-5qI+8NJQX+QlLcgRE3FV
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

Hello,

I have a problem with this portion of code:

-----------------------------------
(...)
[Glade.Widget]
Gtk.Entry entryEuro;
(...)
int euro;
try{
euro =3D Int32.Parse(entryEuro.Text);
} catch (Exception ex) {
     Console.WriteLine(ex.Message);		=09
     return;
}
(...)
-----------------------------------

Every time this "try" is executed, throws me this exception
(ex.Message):

--------------------------
Invalid format.
Invalid format.
Invalid format.
Invalid format.
--------------------------

It's not a critical bug, but is there a solution for this (other than
ignore the exception :) or other way to do that?

Thanks in advance.

PD: Can find all de code in:
http://jhernandez.gplurv.org/aplicaciones/eurito/eurito-0.01.tar.bz2
--=20
Jonathan Hern=C3=A1ndez aka jBilbo :: http://jhernandez.gplurv.org
miembro del LUG GPLURV :: http://www.gplurv.org
Linux User #280862 :: http://counter.li.org/
GnuPG key ID: 348EAC17 :: pgp.escomposlinux.org

--=-5qI+8NJQX+QlLcgRE3FV
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: Esta parte del mensaje =?ISO-8859-1?Q?est=E1?= firmada
	digitalmente

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQBAgC8uNciaETSOrBcRAhq+AKCUeiF4D1HA69Pp7f0HcO6bOrikIACgilTG
vEzYmHz2FrI1sOAGybi/2s8=
=bC3T
-----END PGP SIGNATURE-----

--=-5qI+8NJQX+QlLcgRE3FV--