Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.

INT conversion question...

This topic is 5375 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi... I'm using Borland C++ Builder 6, and I'm having some problems making a calculator... All goes well until I try to assign the value of my edit box into an integer... here's my code:
int iOne; //my int...

iOne = myWindow->txtOne->Text; // myWindow is my window and txtOne is the name of my edit box... and text is the property i'm trying to assing the value to an int...

when i try to compile that, it says that i can't convert 'AnsiString' into an 'int'. there's a function on the help files that supposedly does that, but it only works for a char *. ex: char *cName; cName = myWindow->txtName->Text.c_str(); // that works, but only with pointers to a character. any ideas? thanks! [edited by - pimple on September 3, 2003 5:58:21 PM]

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!