Clear method

The Clear method removes all of the child objects of a runtime object, but does not remove the object itself. For example, you can use this method when a document contains corrupted or incorrect pages.

Syntax

VBScript
oDCO.Clear ( ) as Boolean.
C#
bool Clear()

Arguments

None.

Returns

Returns true if successful; returns false if unsuccessful.

Applies to

All object types.

VBScript example

This example instantiates a field-level object, uses Clear( ) to remove any child objects, and then assigns a value to the ID property of the object.
Dim objFldTwo
Set objFldTwo = DCOSetup.GetNode(3,8)
objFldTwo.Clear
objFldTwo.ID = Tax2