Click or drag to resize

DbSetFound Function

X#
Set the found flag.

Namespace:  XSharp.RT
Assembly:  XSharp.RT (in XSharp.RT.dll) Version: 2.19
Syntax
 FUNCTION DbSetFound(
	lFnd AS LOGIC
) AS LOGIC
Request Example View Source

Parameters

lFnd
Type: Logic
The new setting for the found flag: TRUE or FALSE

Return Value

Type: Logic
TRUE if successful; otherwise, FALSE.
Remarks
The found flag is set after database search functions, such as DBSeek() or DBLocate(). In a group programming project or when writing black-box general routines, you do not want modules to have any side effects. DBSetFound() gives you more control over a global environmental setting. By default, this function operates on the currently selected work area.
It can be made to operate on an unselected work area by specifying it within an aliased expression
Examples
This example sets the found flag to true:
X#
1USE employee NEW
2DBSetFilter({|| Age < 40}, "Age < 40")
3DBSetFound(TRUE)
4DBGoTop()
See Also