>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