>>I have a textbox that collects data. I don't want to allow an
>>apostrophe (') or quotation marks ("). Which character function
>>should I be using to help validate the data?
>
>Actually, I would put this in the textbox.KeyPress.
>
>LPARAMETERS nKeyCode...
>
>IF nKeyCode = (whatever the code for ' is) OR nKeyCode = ('"' code)
> NODEFAULT
>ENDif
>
>The easiest way to get the codes is to stick a WAIT WINDOW STR(nKeyCode) in the KeyPress.
Thanks. Do you know where I can find the codes for those keys?
AL
Al Williams
Anola MB, CANADA