Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Passing Parameter to Child Form
Message
De
02/04/1999 14:30:22
 
 
À
02/04/1999 14:22:20
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00204704
Message ID:
00204747
Vues:
14
Jason...

Bear in mind that in your code:

DO FORM office_assignments WITH tcOfficeID

tcOfficeID refers to the ID number you want to pass to Office_Assignments. That line will only work if you have already initialized tcOfficeID. More likely, you'll want to say

DO FORM office_assignments WITH Offices.OfficeID

Remember, tcOfficeID is just the name you'll use to reference the OfficeID after you've passed it in, using the PARAMETER in the INIT of the called FORM. The value you're passing in is the OfficeID number that you want to use in the new form.

Scott

>Hi Scott --
>
>Thanks for the help
>
>Just to clarify, in the click event of my command button (ASSIGN CONTACTS), I am goint to place the code:
>
>DO FORM office_assignments WITH tcOfficeID
>
>??
>
>
>And, in he init event method of my office_assignments form, I am going to place the code:
>
>lparamters tcOfficeID
>=seek(tcOfficeID,"mytable","myOfficeIDTag")
>
>Does that line translate into:
>
>=seek(tcOfficeID,"offices","offices.nofficeid")
>
>Note: offices is the parent talbe and office_assignments is my child table in this relationship.
>
>I want to make sure I have my init event correct, before I go to the click event on my command button.
>
>I believe Cetin Basoz (developer who gave me this code), is referring to my parent table when he says, "mytable", and I think "myofficeIDTag" is referring to the primary key attached to the office form.
>
>I just want to make sure.
>
>TIA
>
>Jason
Scott D. Grabo
Chief Information Officer
Occupational Health Group
First Advantage Corporation
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform