Skip to content

NullComObject()

See Also: FlexCOM Helper Functions, IsComObject, IsNullComObject, IsComObjectCreated, pvComObject

Purpose

Returns a NULL value of variant type IDispatch*.

Return Type

variant type IDispatch*

Syntax

(NullComObject())

What it Does

This function returns a NULL value of variant type IDispatch*. You can use this function to release a reference to a COM object that is stored in a variant property or variable, or to initialize a variant property or variable.

Example Usage

// Initialize Property with a proper 0
Property Variant pvMyComObject (NullComObject())

// Move null to vVar and dispose of Object if one existed.
Move (NullComObject()) to vVar

// Move null to Property and dispose of Object.
Set pvMyComObject to (NullComObject())