Click or drag to resize

Functions.VoDbSeek Method (Usual, Logic, Logic)

X#
Move to the record having the specified key value.

Namespace:  XSharp.RT
Assembly:  XSharp.RT (in XSharp.RT.dll) Version: 2.18
Syntax
 FUNCTION VoDbSeek(
	uKey AS USUAL,
	lSoftSeek AS LOGIC,
	lLast AS LOGIC
) AS LOGIC
Request Example View Source

Parameters

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

Return Value

Type: Logic
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