Click or drag to resize

CoreDb.Seek Method

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

Namespace:  XSharp
Assembly:  XSharp.Core (in XSharp.Core.dll) Version: 2.19
Syntax
 STATIC METHOD Seek(
	oValue AS Object,
	lSoftSeek AS LOGIC,
	lLast AS LOGIC
) AS LOGIC
Request Example View Source

Parameters

oValue
Type: Object
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
TRUE if successful; otherwise, FALSE.
Remarks
This function is like DBSeek() but strongly typed.

This function, however, does not call the error handler and will therefore not produce a runtime error message or create an error object if it fails.
Therefore it is important to check the return value to determine if the function succeeded.

The LastRddError property in the runtimestate will contain needed information about any error that occurs.
See Also