IsBOF method (WinStudio scripts)

Applies To

IWSIDOCollection interface

Definition

Returns a Boolean value indicating whether the current object is the first (or top) entry in the specified IDO collection.

Syntax

object.IsBOF( )

  Part   Description
object Required. The name of a valid IDO collection object.

Remarks

A return value of:

  • TRUE indicates the current object is the top entry.
  • FALSE indicates the current object is not the top entry.

Example

Sub Main()
    Dim bIsLast As Boolean
    Dim bIsFirst As Boolean
    bIsFirst = ThisForm.CurrentIDOCollection.IsBOF()
    bIsLast = ThisForm.CurrentIDOCollection.IsEOF()
    If bIsLast = True Then
        Application.ShowMessage("The selected object is the last item.")
    ElseIf bIsFirst = True Then
        Application.ShowMessage("The selected object is the first item.")
    Else
        Application.ShowMessage("The selected object is not first or last.")
    End If
End Sub