Click or drag to resize

VoDbSeek Function (Usual, Boolean)

Move to the record having the specified key value.

Namespace:  XSharp.RT
Assembly:  XSharp.RT (in XSharp.RT.dll) Version: 2.4a
Syntax
 FUNCTION VoDbSeek(
	uKey AS USUAL,
	lSoftSeek AS LOGIC
) AS LOGIC
View Source

Parameters

uKey
Type: Usual
A value of any type that specifies the key value associated with the desired record.
lSoftSeek
Type: Boolean
Determines how the work area is positioned if the specified key value is not found:  TRUE performs a soft seek; FALSE does not.

Return Value

Type: Boolean
VODBSeek() always returns TRUE.
Remarks
VODBSeek() is like DBSeek() but is strongly typed.  See DBSeek() for more information.
Examples
In this example, VODBSeek() moves the pointer to the record in the database, EMPLOYEE, in which the value in the field cName matches the entered value of cName:
X#
1ACCEPT "Employee name: " TO cName
2IF (Employee->(VODBSeek(cName), FALSE))
3    Employee->(ViewRecord())
4ELSE
5    ? "Not found"
6END
See Also