Bookshelf Home | Contents | Index | Search | PDF |
Siebel Object Interfaces Reference > Interfaces Reference > Business Component Methods >
LastRecord
LastRecord moves to the last record in the business component.
Syntax
oBusComp.LastRecord
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 errCodeIf errCode = 0 Then
FieldValue.Text = oBusComp.GetFieldValue(FieldName.Text, _
errCode)
End IfHourGlassStop
Status.Text = SiebelApplication.GetLastErrText
End SubSee Also
Bookshelf Home | Contents | Index | Search | PDF |
Siebel Object Interfaces Reference Published: 18 June 2003 |