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

DB.GetRecordCount


Platform Objects


Description

This method will return the number of records within the record set. A call to this method can be time consuming, so it is not recommended for record set traversal: use the Do ... Loop While ( DB.GoNext() ) construct instead. Select is not required for this method to be called.


Syntax


Function GetRecordCount


Parameters


none


Return value


int - the number of records in the database


Example

Sample code

Dim count
count = DB.GetRecordCount() 

See also

Platform Objects and Methods
DB.sort
DB.AppendFinish