Link to home
Start Free TrialLog in
Avatar of nasa
nasa

asked on

Using Edit control (as double or float) with validation in Visual C++ -- how to allow entry of decimals (ie: 0.3333, 5.5, etc)

Hi,

How do I do the afore mentioned question?  Right now my app just makes noise at me if I try to enter a 0.333....

Thanks in advance


Nasa
ASKER CERTIFIED SOLUTION
Avatar of chensu
chensu
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of nasa
nasa

ASKER

Thanks!
If you do it that way, it doesn't become strictly numeric anymore because you can then enter letters as well as numbers. How do you restrict what the user is typing... .i.e. how do you allow only numbers and decimals to be entered and exclude letters without having to validate on OK.

Cheers.