Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Close top form from toolbar
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00981030
Message ID:
00981040
Vues:
45
>My main form which is a top-level form has A toolbar that is opened as in top-level form. What is a way to close main form from a click on a toolbar button?
>
>Thanks, Mark

This key is to get the reference to the main form.
If you know the name of the main form, then you can find a handle to that form:
In the toolbak button click event:
FOR EACH oform IN _screen.Forms 
  IF LOWER(oform.name)="mainform"
    oform.release()
  ENDIF 
NEXT 
Dawa Tsering


"Do not let any unwholesome talk come out of your mouths,
but only what is helpful for building others up according to their needs,
that it may benefit those who listen."

- Ephesians 4:29-30 NIV

Dare to Question -- Care to Answer

Time is like water in a sponge, as long as you are willing you can always squeeze some.

--Lu Xun, Father of Modern Chinese Literature

Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform