AnsiString convert in C++Builder?
Posted on 1998-12-28
I use C++Builder and get value from Text property of a TEdit object, it's type is ansi string but I can not work with ansi string (I want convert it to integer number when user enter a number to that Tedit object).
s = A->Text;//A is a TEdit object
got = atoi(s);
And Builder report an syntax error : "Can not convert System::AnsiString to char *..." in line s = A->Text;
Please help me to convert value from A->Text to number in variable got.
Thank you and Happy New Year!