Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to pass value of parameters from UI to BIZ to DA
Message
 
 
À
20/01/2008 15:10:54
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01283283
Message ID:
01283465
Vues:
15
>>You see, the BIZ object does not know of the UI class. But from Dragan's message I can see that I can pass UI object to BIZ and BIZ to DA and using amembers() do what needs to be done.
>>
>>Thank you very much for your help.
>
>Actually I don't see:) They are objects of the same form,no?
>Cetin

Maybe I can clarify. You are right, BIZ object belongs to the form which is UI. BIZ object is instantiated in the INIT method of the UI form. And when BIZ object is instantiated, in its (BIZ) INIT method it instantiates the DA object. Passing THISFORM (UI) to the BIZ on instantiation allows the BIZ get some values from properties of the UI form. And then BIZ passes itself (THIS) to the DA object on instantiating. And DA can now get values of the BIZ object properties. Does the above makes it more clear? <g>.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform