OrderGroup.AddOrderform
Use this method to add an OrderForm with all of its contents to the OrderGroup object.
If the strOrderFormName is not supplied, it defaults to "default".
Definition
Sub AddOrderform(orderform As Object,Optional strOrderFormName As Variant)
Parameters
orderform
A Dictionary object that contains the OrderForm object that will be added.
strOrderFormName
A Variant that specifies the OrderForm name.
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
' dOrderForm is a Dictionary object
' sMyOrderName is a string
' oOrderGroup is a Commerce.OrderGroup object
oOrderGroup.AddOrderform(dOrderForm,sMyOrderName)