Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
C0000005 in Treeview keypress
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00633579
Message ID:
00634216
Views:
27
That works, and
IF keyascii = 27
  thisform.cmdexitg1.SetFocus()
  thisform.cmdexitg1.Click()
ELSE
...
that crossed my mind at some point, also works.
It looks like setting focus outside the activeX control before exiting the form is essential. One colleague tells me that he got C5 in similar circumstances, trying to exit a form when there was an error in MSComm.

Thanks.

>I would try
>IF keyascii = 27
>  thisform.cmdexitg1.SetFocus()
>  Keyboard "{Enter}" PLAIN CLEAR
>ELSE
>...
>
to see if it eliminates c5. Or add property lExitNow to the form
Doru
Previous
Reply
Map
View

Click here to load this message in the networking platform