OrderGroup.SetAddressFromFields

Ee800140.c++_on(en-US,CS.10).gifEe800140.vb_off(en-US,CS.10).gif

Use this method to set the OrderGroup address dictionary values as specified by the supplied Fields object. The column names in the field object will be mapped to dictionary keys names in the resultant address dictionary.

Definition

Sub SetAddressFromFields(strAddressId As String,flds As Object)

Parameters

strAddressId

A String that specifies the address ID of the address dictionary to be added.

flds

A Fields object that contains the address information to be added.

Return Values

None.

Error Values

This method sets the Number property of the global Err object to S_OK (&H00000000) to indicate success and to standard COM error values to indicate failure. For more information about standard COM errors, see Standard COM Errors. Additional information may be available using the global Err object. In particular, the Description property may contain a text description of the error.

Remarks

For more information about memory ownership issues related to COM property and method parameters, see Managing COM Parameter Memory.

Example

' oOG is a Commerce.OrderGroup object
' oFlds is a Fields object
oOG.SetAddressFromFields("{34ECC9CC-C33E-11D0-B8A0-00C04FB616C7}", _
    oFlds)

See Also

OrderGroup Object

OrderGroup.SetAddress


All rights reserved.