Moves to the first entry in the index.
bValue = object.brMoveFirst([ vsIId])
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. |
The functionality of the method is also available through the brKey method.
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
D3IndexCompKey: key - with the 'c' operator