Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Keypress how-to
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00402154
Message ID:
00402367
Views:
9
>I saw that list, but it also says that if there is a dash (-) then that would me that key returns no value. This is the code I tried in the keypress event and nothing happened.
>
>IF INLIST(nKeyCode,-1)

This makes no sense; why use INLIST() here to compare a single value? INLIST() is designed to take multiple arguments for test values; if you're testing for just one item, then:

IF nKeyCode = -1

has far less overhead and is far clearer.

> ThisForm.m_lookupid()
>ENDIF
>
>However, when I press the F2 key, nothing happens.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform