How insert integer into wxString?? Topic is solved

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.
Post Reply
paolom
Knows some wx things
Knows some wx things
Posts: 47
Joined: Sun Sep 14, 2008 11:02 pm

How insert integer into wxString??

Post by paolom » Thu Nov 20, 2008 11:01 pm

How is possible to append integer to a wxString?

Whit the Append function it doesn't work.

Thanks

timg
Earned some good credits
Earned some good credits
Posts: 148
Joined: Mon Jan 23, 2006 6:52 pm

Post by timg » Thu Nov 20, 2008 11:15 pm

Code: Select all


wxString  mystring;

mystring = mystring + wxString::Format("%d",myinteger);


Jorg
Moderator
Moderator
Posts: 3971
Joined: Fri Aug 27, 2004 9:38 pm
Location: Delft, Netherlands
Contact:

Post by Jorg » Fri Nov 21, 2008 10:05 am

Code: Select all

wxString mystring;
mystring << "Some text" << someInt;
This works as well.

- Jorgen
Forensic Software Engineer
Netherlands Forensic Insitute
http://english.forensischinstituut.nl/
-------------------------------------
Jorg's WasteBucket
http://www.xs4all.nl/~jorgb/wb

Post Reply