Looking_4_Answers
asked on
TEdit OnKeyPress Event help
I have a function that converts a number to roman and visa versa. (thanks to EE expert).
I need to prevent users from entering anything other than the following characters
0..9, or I,V,X,L,C,D,M
into a TEdit control
I guess i need to allow a backspace, but nothing else. (example, no spaces, periods, etc. etc)
thanks
I need to prevent users from entering anything other than the following characters
0..9, or I,V,X,L,C,D,M
into a TEdit control
I guess i need to allow a backspace, but nothing else. (example, no spaces, periods, etc. etc)
thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Great !
Très bonne idée.
Très bonne idée.
ASKER
NICE JOB! Thanks!
ASKER
if not (Key in [#8, '0'..'9', 'I','V','X','L','C','D','M
Key := #0;
i need to prevent the person from entering a numeric if they are already entering a roman numeral character, and visa versa (if the enter a 'I','V','X','L','C','D','M