>>Rather than trapping all the disallowed ones, it sounds like in Bob's case the code should be like
>>
>>IF NOT ( BETW(nKeyPress,48,57) OR BETW(nKeyPress, 65, 90) )
>> NODEFAULT
>>ENDIF
>>much simpler than a case for each non-allowed character, if I understood correctly that's what you were suggesting.
>>
>>My US$.02 (or less),
>
>Rich, Bob-
>That's what I thought, too, Rich, until I tried it. Can't do backspace, delete, or left/right arrow, hyphen... See what I mean? < s >
Ewwwww ... my (big) mistake.
Geez, this makes it pretty hard to do something that it seems would be a common need. There oughta be a format code for only letters and digits! Too bad "!A9" wouldn't work! Urg.
Cheers,
Rich Addison, Micro Vane, Inc., Kalamazoo, MI
Relax, don't worry, have a homebrew.
- Charlie Papazian, The New Complete Joy of Home Brewing