wxTextCtrl question

Franco Amato eurofrank at gmail.com
Wed May 2 09:25:38 PDT 2007


Thanx to all.
Is not possible to put the contain of a wxTextCtrl in a int instead in a
wxString?
For example if my wxTextCtrl contain a number I would like to put this
number in a int variable
and not in a wxString.
Regards
Franco


2007/5/1, Mat=EDas Szeftel <mszeftel at yahoo.com.ar>:
>
> Bryan Petty escribi=F3:
> > On 5/1/07, Franco Amato <eurofrank at gmail.com> wrote:
> >> I would like to check if a wxTextCtrl contains only digit (0...9) and
> >> display an error if there are some characters (a...z)
> >
> > You can use wxString::IsNumber()
> >
> > Regards,
> > Bryan Petty
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: wx-users-unsubscribe at lists.wxwidgets.org
> > For additional commands, e-mail: wx-users-help at lists.wxwidgets.org
> >
> >
> Or wxRegEx can do a good job and you can learn something new :).
>
> Regards, Mat=EDas
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: wx-users-unsubscribe at lists.wxwidgets.org
> For additional commands, e-mail: wx-users-help at lists.wxwidgets.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wxwidgets.org/pipermail/wx-users/attachments/20070502/103=
28468/attachment.htm


More information about the wx-users mailing list