Description: This function returns the last status information that occurred for a specified COM client interface.
Returns: Varies
Usage: Script or Steady State
Format: ComStatus(COMClientInterface [, Options])
Parameters: COMClientInterface { handle } { required } { no default: }
A COM client interface handle returned from a COMClient or ActiveX statement.
Options { numeric } { optional } { no default: }
An optional parameter which, if present:
• set to 0 to return the Windows API error code. This is the default if this parameter is omitted.
• set to 1 to return a text message representation of the Windows API error code.
Comments: The value returned indicates the success or failure of the last operation attempted through the specified COM client interface.
Dependant on the Options parameter, this function returns either the Windows API error code or a text value containing an ASCII representation of the error code. There is no guarantee that all error codes can be successfully translated into a text representation.
See Also: