Click or drag to resize

DbServer.Found Property

X#
A logical value indicating whether the previous search operation succeeded.

Namespace:  VO
Assembly:  VORDDClasses (in VORDDClasses.dll) Version: 2.19
Syntax
 VIRTUAL PROPERTY Found AS USUAL GET 
Request Example View Source

Property Value

Type: Usual
A 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:
X#
 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        // Result: FALSE
12oDBSales:Seek("100")
13? DBSales:Found        // Result: TRUE
14DBSales:Skip()
15? DBSales:Found        // Result: FALSE
See Also