Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Reference one form from another
Message
De
18/07/2000 19:44:11
Jimmy Ditta
Twin City Electronics
Monroe, Louisiane, États-Unis
 
 
À
18/07/2000 03:05:18
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00393630
Message ID:
00394108
Vues:
12
>Hi Jimmy.
>
>>> How do I reference a control on another form from the current form? i.e. Thisform.controlname.value would be the value of a control on the current form. How do you say Theotherform.controlname.value? <<
>
>Why should one form have to know anything about specific controls on another form? IMHO, this may indicate some problems with your design.
>
>Having said that, if the second form is being called from the first, here is a trick that you can use. _Screen.Activeform still references the calling form when the called form's LOAD is executing. So, in this scenario, you can add a custom property to the called form called oCalledBy use code in the called form's load like this to save a reference to the calling form:
>
>This.oCalledBy = _Screen.ActiveForm
>
>Marcia



Hi Marcia,

What I'm doing with the form references is when you click on "save" I want a box to come up asking if the user would like to append a new record. Is there already a similar class to perform this function?

Also, I'm sure a better way would be to have the save method go ahead and append a new blank record on each save, and when the append mode is closed - remove the last blank record. How do I cancel an append blank once its implemented?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform