OrderGroup.GetOrderFormValue

Ee799747.c++_on(en-US,CS.10).gifEe799747.vb_off(en-US,CS.10).gif

Use this method to get an attribute from an OrderForm, based on a specified key.

Definition

Function GetOrderFormValue(strKey As String,Optional strOrderFormName As Variant) As Variant

Parameters

strKey

A String that contains the key that specifies the attribute to get.

strOrderFormName

A Variant that specifies the OrderForm name.

Return Values

If this method completes successfully, it returns a Variant that contains the attribute.

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

If the strOrderformName parameter is not supplied, the strOrderFormName parameter defaults to "default".

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

Example

' oOrderGroup is a Commerce.OrderGroup object
vResult is a Variant

vResult = oOrderGroup.GetOrderFormValue(handling_total, _
"testOrderFormName")

See Also

OrderGroup Object


All rights reserved.