brMoveFirst method

Moves to the first entry in the index.

Syntax

bValue = object.brMoveFirst([ vsIId])

Parameters

Parameter Description
bValue The return value is a Boolean data type that is False only if the requested key is past the end of the index.
object An object variable that represents a clsD3Index object.
vsIId Optional. A Variant (String subtype) containing the item-id of the D3 item returned. This is an output-only parameter that returns the same result as the brIndexId property.

Remarks

The functionality of the method is also available through the brKey method.

Example

Private Sub TestMovemethods_Click()
   Dim oIndex As clsD3Index
   Dim oFile As clsD3File
   Dim oCustName As New clsD3DynamicArray
   Dim sCurrent As String
   Dim i As Integer
 
   OpenConnection ' Subroutine to establish connection
 
   Set oFile = oConn.brOpenFile("customers")
   Set oIndex = oFile.brRoot("a1")
 
   Do While True
      Select Case InputBox("F for First, L for Last, N for next, P for previous")
         Case "F"
            oIndex.brMoveFirst
         Case "L"
            oIndex.brMoveLast
         Case "N"
            oIndex.brMoveNext
         Case "P"
            oIndex.brMovePrevious
         Case Else
            Exit Do
      End Select
 
      Set oCustName = oFile.brReadV(oIndex.brIndexId, "organizationname")
 
      MsgBox oCustName.brCString
   Loop
 
   CloseConnection ' Subroutine to close connection
 
End Sub

FlashBASIC reference

D3IndexCompKey: key - with the 'c' operator

Applies to

clsD3Index class