valdating user input from Edit box

Hi!
I need to make sure a number, floating point or integer, I don't care, is entered into an edit box. No alphabetic characters or punctuation. I know that the Text property is text only, but I will be converting the text to float, so I need just the numbers and a popup that tells the user to only enter numbers.
Thanks,
Paul
Forgot to mention, I am using C++ Builder 5.02 Pro
Last edited on
There should be a TMaskEdit control you can use. If not you will have to override the edit control's window procedure to receive WM_KEYPRESS events and allow them to pass or not as you desire.

Hope this helps.
Topic archived. No new replies allowed.