Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Exiting text box LostFocus method on form close
Message
De
21/03/2003 14:41:23
Larry Huisingh
Lockheed Martin Information Technology
Richland, Washington, États-Unis
 
 
À
21/03/2003 13:20:44
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00768691
Message ID:
00768737
Vues:
14
>>I have a form with a text box. That text box has a LostFocus method which does a table lookup and returns focus to itself. I want to be able to close the form via the close box. That is no problem. I want to be able to detect that the form is being closed and thereby skip the table lookup. I can check the value of LastKey() but there are many key strokes that could potentially close the form.
>>
>>In other words, how can a text box LostFocus method know the form is being closed?
>>
>>Thanks in advance.
>
>You could check the Form's .ReleaseType property. See if that's useful to you.

That's great! I just put a test for ThisForm.ReleaseType > 0 and that seemed to do the trick.
Larry Huisingh
Lockheed Martin Information Technology
Richland WA USA
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform