Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Inkey
Message
De
18/12/2001 07:00:10
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Produits tierce partie
Titre:
Re: Inkey
Divers
Thread ID:
00595520
Message ID:
00595524
Vues:
19
>Dear All
>
>We are having a problem with the escape key. We have a escape method and the line it falls over on is "if inkey() = 27". It brings up the following error
>
>ERROR: (11) Function argument value, type, or count is invalid.
>
>It works for 99% of the time.
>
>Has anyone any ideas

Insert commands to test what value is returned by inkey(), and whether it isn't null.
lnKey = inkey()
* Test for null, and type, here. Show debugging information as required.
if lnKey = 27
  ...
HTH, Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform