Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Stateless Biz Objects Question
Message
De
06/01/2000 08:35:26
 
 
À
05/01/2000 18:44:33
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00313483
Message ID:
00313834
Vues:
65
>I think I see where the miscommunication is here. I was making the assumption that the state of the biz object be reestablished prior to the use of the properties. Otherwise, what you are saying is entirely correct.
>
>>It's the same thing. You can't rely on a value of a property to be there if called from the client. You need to return the value from a method. If you need multiple values you can use a parameter object.
>
>A Parameter object - yes, this is what I'm looking for. Can you be more explicit.

- Create an object with properties for all the values you need. Let's call it oProp.
oProp = CREATEOBJECT("PropertyObject")

- Pass oProp as a parameter to the COM server. Let's say it uses toProp as the variable to receive the parameter.
oCom = CREATEOBJECT("ComServer")
oCom.Method(oProp)

- In the COM server, set the values of the properties in oProp.
LPARAMETERS toProp
* Do some processing
toProp.Property1 = This.SomeValue1
toProp.Property2 = This.SomeValue2
toProp.Property3 = This.SomeValue3
RETURN

- Now you can query the values in oProp
? oProp.Property1
? oProp.Property2
? oProp.Property3
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform