Dominic Burford wrote:
Whether returning multiple properties from an object, or passing multiple properties to an object, we use the same mechanism. We use a Property Bag object. This is similar to a SCATTER NAME object and is an object which contains properties relating to each item of informtation. You simply add the properties to the object as they are required.Local loPropertyBag, loForm loPropertyBag = CreateObject("clsPropertyBag") With loPropertyBag .AddProperty("NewProperty1", "New Value 1") .AddProperty("NewProperty2", "New Value 1") EndWith loForm = CreateObject("frmNewForm", loPropertyBag) In VFP9 a suitable candidate for the Property Bag would be the Empty class: Local loPropertyBag loPropertyBag = CreateObject("Empty") ADDPROPERTY(loPropertyBag, "Property1", "Value1")
I think collections would be a consideration as well, if you're using at least VFP8.
-- Michael J. Babcock, MCP MB Software Solutions, LLC http://mbsoftwaresolutions.com http://fabmate.com "Work smarter, not harder, with MBSS custom software solutions!" _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/profox OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

