DbServer.Found Property | |
A logical value indicating whether the previous search operation succeeded.
Namespace:
VO
Assembly:
VORDDClasses (in VORDDClasses.dll) Version: 2.21
Syntax VIRTUAL PROPERTY Found AS USUAL GET
public virtual Usual Found { get; }
Request Example
View SourceProperty Value
Type:
UsualA logical value indicating whether the previous search operation succeeded.
Remarks
A logical value indicating whether the previous search operation succeeded. Note that this is old technology and is mainly here for backwards compatibility. Typically if you are doing a SEEK/FOUND scenario, you would simply do a "IF oDB:Seek(…)" to check if the seek was successful (FOUND) or not.
Examples
This example illustrates the behavior of Found after a record movement operation:
1CLASS Sales INHERIT DBServer
2...
3METHOD Init() CLASS Sales
4...
5SELF:SetIndex("sales")
6...
7FUNCTION FoundDemo()
8LOCAL oDBSales AS Sales
9oDBSales := Sales{}
10oDBSales:Seek("1000")
11? DBSales:Found
12oDBSales:Seek("100")
13? DBSales:Found
14DBSales:Skip()
15? DBSales:Found
See Also