
March 18th, 2004, 11:36 AM
|
|
Registered User
|
|
Join Date: Mar 2004
Posts: 1
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
Simple C++ Numerical Input Problem
Hi,
I'm relatively new to C++ and need to read user input numerical values from edit fields into separate variables. I'm sure there is a way to limit users to only be able to enter numerical values, but I can't remember how to do it.
Also, when reading the values out of the edit fields, I get an "unable to convert ansistring to double". The solution to the above question may also solve this, but if not, is there a way around it?
Typical code I'm using is:
number_variable = EditBox->Text;
using Borland 6.
Thanks,
Richard.
|