VoDbSeek Function (Usual, Boolean)
Move to the record having the specified key value.
XSharp.RT (in XSharp.RT.dll) Version: 2.4a
Syntax View Source
uKey AS USUAL,
lSoftSeek AS LOGIC
) AS LOGIC
public static bool VoDbSeek(
- Type: Usual
A value of any type that specifies the key value associated with the desired record.
- 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.
VODBSeek() always returns TRUE.
VODBSeek() is like DBSeek() but is strongly typed. See DBSeek() for more information.
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:
1ACCEPT "Employee name: " TO cName
2IF (Employee->(VODBSeek(cName), FALSE))
5 ? "Not found"