Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
C0000005 in Treeview keypress
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00633579
Message ID:
00634216
Vues:
28
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform