GetNumEntries method (WinStudio scripts)

Applies To

IWSIDOCollection interface

Definition

Returns the number of records in a specified IDO collection. Read-only.

Syntax

object.GetNumEntries( )

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

Remarks

The return value is an integer indicating the number of records in the IDO collection.

Example

Sub Main()
   Dim SubColCache As IWSIDOCollection
   Dim i As Integer
   SubColCache = ThisForm.Components("LanguageDescGridCol").IDOCollection
   For i = 0 To (SubColCache.GetNumEntries() - 1)
      SubColCache.SetObjectProperty("LanguageDesc", i, "")
   Next i
   ThisForm.PrimaryIDOCollection.NotifyDependentsToRefresh("LanguageDesc")
End Sub