11-21-2008 01:00 AM
Hai.
I want only Alphabets & Digits to be entered in to my string.No any other special characters except spaces.How can I do this?
Solved! Go to Solution.
11-21-2008 01:41 AM
Hi kaustubh,
you can use an event structure to check which key is pressed. If you want to check the full string, then you can use a loop and check every single character if it is in a special range. You can use the corresponding byte value for it.
Hope it helps.
Mike
11-21-2008 01:52 AM
Hai Mike
Thanks for ur reply.Actually I've used Match Regular With [^0-9][^a-z] as Regular Expression.But the results were not as I expected.I dont want user to enter any Special characters like !@#^>_:">? e.t.c
Hope so I've made it Clear.
11-21-2008 02:08 AM
Hi kaustubh,
see the attached example.
Hope it helps.
Mike
11-21-2008 02:45 AM - edited 11-21-2008 02:49 AM
MikeS81 wrote:see the attached example.
I would allow a few more, e.g. 0 and 8 to allow editing of the entered string (backspace, cursor buttons, delete key, etc.).

11-21-2008 02:50 AM
HAI Mike.
Thanks for your reply
It really worked.Thanks alot.
11-21-2008 09:43 AM
kaustubh wrote:Hai.
I want only Alphabets & Digits to be entered in to my string.No any other special characters except spaces.How can I do this?
Sorry, I think you also want to allow the "space" character....
Simply add a 32 to my non-default case to do this. It should now read " 0, 8, 32, 48..122"