SiMX Help‎ > ‎The Target Platform‎ > ‎Objects‎ > ‎DBCreator Object‎ > ‎

DBCreator.GoTop


Platform Objects


Description

Positions on the first record of the record set. Select should be done first.


Syntax


Function GoTop


Parameters


none


Return value


none


Example

Code sample

Dim first_val, last_val
If DB.Select() Then 
   DB.GoBottom() 
   last_val = DB.GetFieldValue( "Field1" ) 
   DB.GoTop() 
   first_val = DB.GetFieldValue( "Field1" ) 
End If


See also

Platform Objects and Methods
DB.sort
DB.AppendFinish
DBCreator.IsFieldEmpty