>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()
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)