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