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.

// 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

 

// moves null to Property an dispose of Object.

Set pvMyCombject to (NullComObject())