LastRecord Method for a Business Component

The LastRecord method moves the record pointer to the last record in a business component. It returns one of the following items:

  • An integer in Siebel VB

  • A Boolean value in COM, Siebel Java Data Bean, or Siebel eScript

For more information, see FirstRecord Method for a Business Component and NextRecord Method for a Business Component.

Format

BusComp.LastRecord

No arguments are available.

Used With

COM Data Control, COM Data Server, Siebel Java Data Bean, Mobile Web Client Automation Server, Server Script

Examples

The following example is for the Mobile Web Client Automation Server:

Private Sub LastRecord_Click()

   Dim errCode As Integer
   Dim oBusComp as SiebelBusComp
   FieldValue.Text = ""
   oBusComp.ClearToQuery
   oBusComp.ExecuteQuery ForwardBackward
   oBusComp.LastRecord errCode
   If errCode = 0 Then
      FieldValue.Text = oBusComp.GetFieldValue(FieldName.Text, _
         errCode)
   End If

   Status.Text = SiebelApplication.GetLastErrText
End Sub