>>Tore,
>>
>>Can you elaborate a bit on this idea?
>>
>>local loParameter
>>loParameter = createobject('parameterX')
>>loParameter.AddProperty('arrRecords[1]')
>>do form myForm with loParameter
>>
>>thisform Init
>>
>>lparameters loParam
>>thisform.oParam = loParam
>>
>>Somethere in the form we set the properties
>>
>>would the new array be available this way after we close the form?
>>
>
>Yes.
>
>>Also what should we do with the reference in the form? Or should we return the object back?
>
>No need, because it's a "reference type", i.e. m.loParameter and Thisform.oParam are references to the very same object in the "heap".
>So that whenever you assign content to any of the properties of Thisform.oParam, then the corresponding m.loParameter property immediately contains the same value.
>
>
>
>hth
>-Stefan
Thanks, I'll try it.
If it's not broken, fix it until it is.
My Blog