You can use the same event code for multiple controls. The "Sender" parameter is a pointer to the control that triggered the event.
If you have a OnKeyPress event for numbers, you can reuse the event for all TEdit controls that accept numbers.
I would also look into TMaskEdit and JEDI's TJvDBSpinEdit which handles validation for you.
__________________
Watch Repo Men Online Free
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks