GlobalConfig.GetIfCollection
Use this method to convert values read from the Fields property into appropriate objects such as a SimpleList object or a VariantArray. If the encoding in the string contained in the Fields property indicates a SimpleList object, then a SimpleList object is returned. If the encoding indicates a VariantArray, then a VariantArray is returned. If no collection object is indicated, then the method returns the original encoded input string.
Definition
Function GetIfCollection(strList As Variant) As Variant
Parameters
strList
A Variant that contains the encoded string to be converted.
Return Values
If this method completes successfully, it returns a Variant containing the converted data in the appropriate data type.
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.
All ADO, SQL, and ODBC errors will also be returned by this method.
Remarks
For more information about memory ownership issues related to COM property and method parameters, see Managing COM Parameter Memory.
Example
' vVariant is a Variant; vEncodedString is a Variant
' oGlobalConfig is a Commerce GlobalConfig object
vVariant = oGlobalConfig.GetIfCollection(vEncodedString)