Harbour Reference Guide

 

DBSETFILTER()

Establishes a filter condition for a work area.

Syntax

DBSETFILTER(<bCondition>, [<cCondition>]) --> NIL

Arguments

<bCondition> Code block expression for filtered evaluation.

<cCondition> Optional character expression of code block.

Returns

DBSETFILTER() always returns NIL.

Description

This function masks a database so that only those records that meet the condition prescribed by the expression in the code block <bCondition> and literally expressed as <cCondition> are visible. If <cCondition> is not passed to this function,then the DBFILTER() function will return an empty string showing no filter in that work area which in fact,would be not correct.
Examples
      FUNCTION Main()
      USE Tests NEW
      DBSETFILTER({|| Tests->Id <100},"Tests->Id <100")
      DBGOTOP()

Status

Ready

Compliance

This function is CA-Clipper compliant.

Files

Library is rdd

See Also

 




[Source Forge]

Other Docs Categories

Advantage Database RDD
Array
Binary conversion
Classes
Code Block
Console input
Conversion
Conversion Tools
DOS
Data input and output
Database
Database Tools
Date
Dos Tools
Environment
Error recovery
Events
File management
GT
Harbour Tools
Internal
Low Level
Math
Misc
Miscellaneous
Nation
Object manipulation
Operating System Specific
Parameter Checks
String Tools
Strings
TBrowse Method
TBrowse class
Terminal
Time
Utility
Variable Management

 

Last updated on 2001/07/30