How to convert wxChar

Igor Korot ikorot at earthlink.net
Thu Mar 6 18:50:57 PST 2008


Thank you.

-----Original Message-----
>From: Milan Babuskov <milanb at panonnet.net>
>Sent: Mar 6, 2008 6:27 AM
>To: wx-users at lists.wxwidgets.org
>Subject: Re: How to convert wxChar
>
>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
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: wx-users-unsubscribe at lists.wxwidgets.org
>For additional commands, e-mail: wx-users-help at lists.wxwidgets.org
>





More information about the wx-users mailing list