J
JNY
Hi,
I'm using a GUI Edit box to allow the user to enter a number. This
data is stored as an AnsiString. I need it in Integer format, but
cannot convert between the two. I found AnsiString::ToINT in the help
file, and have tried to impliment it thus:
int myValue = AnsiString::ToInt(Edit1 -> Text);
This doesn't work. Edit1 is the Edit Box, and Text, is an attribute
of said box. I am using Borland Builder5. This is the only GUI
compiler which I've used, so I'm not sure if this syntax is common to
others.
Can anyone help?
Cheers
JNY
I'm using a GUI Edit box to allow the user to enter a number. This
data is stored as an AnsiString. I need it in Integer format, but
cannot convert between the two. I found AnsiString::ToINT in the help
file, and have tried to impliment it thus:
int myValue = AnsiString::ToInt(Edit1 -> Text);
This doesn't work. Edit1 is the Edit Box, and Text, is an attribute
of said box. I am using Borland Builder5. This is the only GUI
compiler which I've used, so I'm not sure if this syntax is common to
others.
Can anyone help?
Cheers
JNY