Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Form and called Class - Parentage
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01518685
Message ID:
01518689
Vues:
36
>>Hi again, gang!
>>
>>I have another question....
>>
>>I have a form called frmA and a property called p_ITM, and property p_C
>>
>>and
>>
>>I have a class called ITM in the project with properties p_A and p_B .
>>
>>The code in frmA does this....
>>
>>Thisform.p_ITM = CREATEOBJECT('itm')
>>
>>So... when I want to set or see properties in 'itm'.... I can call the code
>>
>>Thisform.p_ITM.p_A = 'this' likewise Thisform.p_ITM.p_B = 'that'
>>
>>ok...
>>
>>But what if I am in class ITM code and I want to set the property in frmA ??
>>
>>Like this??
>>
>>frmA.p_C = 'me'
>>
>>
>>I get frmA object does not exist.
>>
>>So.... how do I refer back to the frmA and it's properties?
>>
>>Thanks a bunch!
>
>You need to pass form's reference as a parameter to the other form, e.g.
>
>lparameters toCalledFrom
>
>thisform.oCalledFrom = toCalledFrom
>
>and then you should be able to access other form's properties using
>
>thisform.oCalledForm.Property
>
>be careful using this approach.

Thanks!
Tommy Tillman A+ NetWork+ MCP
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform