Input Mask - Comma/Space

RandyK

New member
Local time
Today, 11:27
Joined
Aug 26, 2002
Messages
7
Is there a way to setup an Input Mask that forces a "space" after entering a "comma" to separate customer's last name from customer's first name?

For example: Doe, John

Thank you,
RandyK
 
I don't know about the input mask properties but here's another solution;
The KeyPress event "object_KeyPress (KeyAscii as integer)" will trap the ASCII code of all new characters as they are entered into the text box/list box/ label, whatever. Set up an If...else loop checking to see if the KeyAscii value corresponds to the ASCII code for the comma (44 on my system). If this is true, add a space to the end of the full string.
 

Users who are viewing this thread

Back
Top Bottom