Clear method (WinStudio scripts)

Applies To

IWSIDOCollection interface

Definition

Removes all objects from the specified IDO collection and resets the number of entries to 0.

Syntax

object.Clear( )

  Part   Description
object Required. A reference to an IDO collection object.

Remarks

The Clear method is normally not used to empty an IDO collection. This method removes a collection's property and binding information in addition to the row items. The ClearEntries method empties the row items without removing other collection information.

Example

Sub Main()
   'Clears the secondary collection.
   ThisForm.CurrentIDOCollection = ThisForm.GetSecondaryIDOCollection(2)
   ThisForm.CurrentIDOCollection.Clear()
End Sub