Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Inkey
Message
From
18/12/2001 07:00:10
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
General information
Forum:
Visual FoxPro
Category:
Third party products
Title:
Re: Inkey
Miscellaneous
Thread ID:
00595520
Message ID:
00595524
Views:
21
>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)
Previous
Reply
Map
View

Click here to load this message in the networking platform