RefreshKeepCurIndex method (WinStudio scripts)

Applies To

IWSIDOCollection interface

Definition

Refreshes a specified IDO collection, sets as the current object the object that was current before the refresh, and returns a Boolean value indicating whether the operation was successful.

Syntax

object.RefreshKeepCurIndex( )

  Part   Description
object Required. A reference to a valid IDO collection object.

Remarks

A return value of:

  • TRUE indicates that the collection was refreshed.
  • FALSE indicates that the collection was not refreshed.

If the collection contains new or altered objects that you want to preserve, save the objects before the collection is refreshed. If changes to objects in the collection are pending and have not been saved, they are lost when the collection is refreshed.

Example

Sub Main()
   Dim bValue As Boolean
   bValue = ThisForm.PrimaryIDOCollection.RefreshKeepCurIndex()
End Sub