Moves to the last entry in the index.
bValue = object.brMoveLast([ 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. |
This method is expensive in both CPU and file I/O, and it may tie up the server for a significant period of time.
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
D3IndexLastKey: key - with the 'L' operator