Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Keypress how-to
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Divers
Thread ID:
00402154
Message ID:
00402367
Vues:
10
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform