Ah, but if you look at Help for INKEY(), you have a numerical list of the chars' ASCII values. Hence you can use:
lnInkey = INKEY()
If BETWEEN( lnInkey, 49, 122) or BETWEEN(...) ...
Whatever
>yes. you are right terry. with that code, backspace,delete,home,end,insert,escape,arrows etc . all these kind of keys wont work. either i have to include these keys also in that list.
>
>or if i do the other way round. i.e. make a list of chars that i want to restrict. then also i think its a big list.
>
>guess i just have to do either of choice. there isnt seem to be any other simpler way around.
>
>thank you all for help.
- Whoever said that women are the weaker sex never tried to wrest the bedclothes off one in the middle of the night
- Worry is the interest you pay, in advance, for a loan that you may never need to take out.