Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Checking for characters
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00063081
Message ID:
00063096
Views:
42
>>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform