wwUtils::CopyObjectProperties

This function copies properties between two objects in a flat manner. Child objects or arrays are not taken into account - this is a single level function.

If you have multiple level objects you can explicitly copy each of the child objects.

The function also provides a parameter to determine which object is used as the source object that is used for parsing the properties to update. This is especially useful if one of the objects in question is a COM object which cannot return property values from AMEMBERS().

o.CopyObjectProperties(loSource,loTarget,lnSourceTemplateObject, llParseObjects)

Return Value

nothing

Parameters

loSource
The Source object to copy properties from.

loTarget
The target object to copy properties to.

lnSourceTemplateObject
optional - a value of 1 or 2 which indicates which of the two objects is used for the properties to use for the object map. If not specified 1 is used.

Remarks

The method handles assignment errors and missing fields with internal exception blocks. No errors are returned and if an assignment error occurs the original property value is simply left as is.

See also:

Library wwUtils | wwUtils::CopyObject

© West Wind Technologies, 2004-2017 • Updated: 09/18/14
Comment or report problem with topic