VoDbSeek Function (Usual, Logic) | |
Move to the record having the specified key value.
Namespace:
XSharp.RT
Assembly:
XSharp.RT (in XSharp.RT.dll) Version: 2.21
Syntax FUNCTION VoDbSeek(
uKey AS USUAL,
lSoftSeek AS LOGIC
) AS LOGIC
public static bool VoDbSeek(
Usual uKey,
bool lSoftSeek
)
Request Example
View SourceParameters
- 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.
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:
1ACCEPT "Employee name: " TO cName
2IF (Employee->(VODBSeek(cName), FALSE))
3 Employee->(ViewRecord())
4ELSE
5 ? "Not found"
6END
See Also