Thank you.
The Case statement worked well.
Just like in Freebasic/WinFBE i had to change to number count since the Keypress event validate the character BEFORE placing into the Edit field / textbox.
The Length command will return one character less.
Thanks for that, it works like a charm.
-Reagrds, Peter