brMovePrevious method

Moves to the previous entry in the index

Syntax

bValue = object.brMovePrevious([ vsIId])

Parameters

Parameter Description
bValue The return value is a Boolean data type. It 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, returning the same result as the brIndexId property.

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

D3IndexPrevKey: key - with the 'p' operator

Applies to

clsD3Index class