If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
vpadilla
Earned a small fee
Posts: 18 Joined: Wed Jan 19, 2005 8:54 pm
Post
by vpadilla » Fri Feb 04, 2005 1:04 am
I am trying to remove the zero out of the string "05" to make it a numeral 5. I can't seem to get Strip to work. Would anyone care to help me please?
Thanks in advance.
[/b]
cg
Filthy Rich wx Solver
Posts: 201 Joined: Sun Aug 29, 2004 12:33 am
Location: Canada
Contact:
Post
by cg » Fri Feb 04, 2005 3:37 am
wxString s = "05";
s.Replace("05","5");
CG
cg
Filthy Rich wx Solver
Posts: 201 Joined: Sun Aug 29, 2004 12:33 am
Location: Canada
Contact:
Post
by cg » Fri Feb 04, 2005 3:38 am
wxString s = "05";
int i = wxAtoi(s);
CG
vpadilla
Earned a small fee
Posts: 18 Joined: Wed Jan 19, 2005 8:54 pm
Post
by vpadilla » Fri Feb 11, 2005 11:43 pm
Thank you. It works.