How to convert wxChar

Milan Babuskov milanb at panonnet.net
Thu Mar 6 03:27:25 PST 2008


Igor Korot wrote:
> How to perform following conversion (this code fails to compile):
> 
> wxString str;
> int value;
> str.GetChar(0).ToLong( value );

long value;
str.Left(1).ToLong(value);

P.S. I wrote the Left from the head, check manual for exact parameters 
or use Mid if you need some other character.

-- 
Milan Babuskov
http://www.flamerobin.org




More information about the wx-users mailing list