Click or drag to resize

DbServer.LastRec Property (Typed)

X#
The number of records in the current database file.

Namespace:  XSharp.VO.SDK
Assembly:  XSharp.VORDDClasses (in XSharp.VORDDClasses.dll) Version: 2.19
Syntax
 VIRTUAL PROPERTY LastRec AS LONG GET 
Request Example View Source

Property Value

Type: Long
The number of records in the current database file.
Remarks
The number of records in the current database file. Filtering commands such as SET FILTER or SET DELETED have no effect on the return value.
Examples
This example uses LastRec to define an access method to return the Size of the data server:
X#
1CLASS Sales INHERIT DBServer
2...
3ACCESS Size CLASS Sales
4RETURN (SELF:RecSize * SELF:LastRec) + ;
5SELF:Header + 1
See Also