Siebel Object Interfaces Reference > Interfaces Reference > Business Component Methods >

LastRecord


LastRecord moves to the last record in the business component.

Syntax

oBusComp.LastRecord

Argument
Description
Not applicable
 

Returns

An integer in Siebel VB; a Boolean in Siebel eScript, COM, ActiveX, and CORBA: 1 or non-zero if there was a last record (the query returned results) and 0 if there are no records. LastRecord requires an explicit SortSpec.

Used With

Server Script, Mobile/Dedicated Web Client Automation Server, COM Data Control, COM Data Server, Java Data Bean, CORBA Object Manager

Example

Here is a Mobile/Dedicated Web Client Automation Server example.

Private Sub LastRecord_Click()

   Dim errCode As Integer
   Dim oBusComp as SiebelBusComp
   FieldValue.Text = ""
   HourGlassStart
   oBusComp.LastRecord errCode

   If errCode = 0 Then
      FieldValue.Text = oBusComp.GetFieldValue(FieldName.Text, _
         errCode)
   End If

   HourGlassStop

   Status.Text = SiebelApplication.GetLastErrText
End Sub

See Also

FirstRecord
NextRecord


 Siebel Object Interfaces Reference 
 Published: 18 June 2003