Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using Hide and Show Features
Message
 
À
08/09/2000 08:34:50
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00414061
Message ID:
00414066
Vues:
23
>When i hide my initial form to bring up a new form, it doesn't bring up the first form:
>
>thisform.hide()
>Do Form 2
>
>Click Event of the close button in Form 2:
>thisform.release()
>Form1.Show()
>
>But it's not finding Form1. even when I attempt to name it. Any clues anyone?

You need to pass the object reference of THISFORM from the first form to the second.

THISFORM.HIDE()
Do FORM2 WITH THISFORM

*Set the parameter THISFORM in the init section of the form2 to a property say oCalledFrom

* Then in the click method of the close button
THISFORM.oCalledFrom.Show()
THISFORM.RELEASE()
Bret Hobbs

"We'd have been called juvenile delinquents only our neighborhood couldn't afford a sociologist." Bob Hope
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform