Click or drag to resize

VoDbSetFilter Function

X#
Set a filter condition.

Namespace:  XSharp.RT
Assembly:  XSharp.RT (in XSharp.RT.dll) Version: 2.19
Syntax
 FUNCTION VoDbSetFilter(
	cbCondition AS USUAL,
	cCondition AS STRING
) AS LOGIC
Request Example View Source

Parameters

cbCondition
Type: Usual
A code block that expresses the filter condition in executable form.
cCondition
Type: String
A character value that expresses the filter condition in textual form.
It must be equivalent to cbCondition.
To omit, specify a NULL_STRING. cCondition is the value returned by the DBFilter() function.

Return Value

Type: Logic
TRUE if successful; otherwise, FALSE.
If cCondition is omitted, the DBSetFilter() function will return an empty string for the work area.
Remarks
VODBSetFilter() is like DBSetFilter() but is strongly typed.
This function, however, does not call the error handler and will not, therefore, produce a runtime error message or create an error object if it fails. Thus, it may be important to check the return value to determine if the function succeeded.
the LastRddError property in the runtime state. will contain needed information regarding any error that occurs.
See DbSetFilter(Usual, Usual) for more information and an example.
Examples