>Dear Sir,
>
>When I run your codes with a command button
>Then the following error message appears
>
>"Property lProgrammaticEscape is not found"
>
>Should I add this property to Form?
>
>I am using VFP6.
>
>Please help again
Yes, of course, that was the idea. You should add the property to the form, leave it initially at .F., and set it to .T. if you want to "simulate an ESC key".
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)