The Btrieve filter class.
More...
#include <btrieveCpp.h>
The Btrieve filter class.
- Examples:
- bfilter.cpp, and btestbulk.cpp.
◆ BtrieveFilter()
BtrieveFilter::BtrieveFilter |
( |
| ) |
|
◆ ~BtrieveFilter()
BtrieveFilter::~BtrieveFilter |
( |
| ) |
|
◆ SetACSMode()
◆ SetACSName()
Set the alternate collation sequence name.
- Parameters
-
- Description
- Filters have no alternate collation sequence name initially. To reference an alternate collation sequence name it must exist in the file. An alternate collation sequence name may be added to a file when an index is created. See BtrieveFile::IndexCreate.
- Snippet
- Return values
-
= Btrieve::STATUS_CODE_NO_ERROR | Success. |
!= Btrieve::STATUS_CODE_NO_ERROR | An error has occurred. |
- See also
- Btrieve::StatusCodeToString
- Examples:
- bfilter.cpp.
◆ SetACSUserDefined()
Set the user defined alternate collation sequence name.
- Parameters
-
- Description
- Filters have no user defined alternate collation sequence name initially. To reference a user defined alternate collation sequence it must exist in the file. A user defined alternate collation sequence may be added to a file when an index is created. See BtrieveFile::IndexCreate.
- Return values
-
= Btrieve::STATUS_CODE_NO_ERROR | Success. |
!= Btrieve::STATUS_CODE_NO_ERROR | An error has occurred. |
- See also
- Btrieve::StatusCodeToString
◆ SetComparison()
◆ SetComparisonConstant()
Btrieve::StatusCode BtrieveFilter::SetComparisonConstant |
( |
const char * |
constant, |
|
|
int |
constantLength |
|
) |
| |
Set the comparison constant.
- Parameters
-
[in] | constant | The comparison constant. |
[in] | constantLength | The comparison constant length. Comparison constant length is limited to Btrieve::MAXIMUM_KEY_LENGTH. |
- Description
- Filters have no comparison constant initially.
- Snippet
- Return values
-
= Btrieve::STATUS_CODE_NO_ERROR | Success. |
!= Btrieve::STATUS_CODE_NO_ERROR | An error has occurred. |
- See also
- Btrieve::StatusCodeToString
- Examples:
- bfilter.cpp, and btestbulk.cpp.
◆ SetComparisonField()
Set the comparison field.
- Parameters
-
- Description
- Filters have no comparison field initially.
- Snippet
- Return values
-
= Btrieve::STATUS_CODE_NO_ERROR | Success. |
!= Btrieve::STATUS_CODE_NO_ERROR | An error has occurred. |
- See also
- Btrieve::StatusCodeToString
- Examples:
- bfilter.cpp.
◆ SetConnector()
◆ SetField()
◆ SetLikeCodePageName()
Set the code page name to be used for the comparison types Like or Not Like.
- Parameters
-
[in] | name | The name of the code page. |
- Description
- Supply the name of the code page to be used for string comparisons for the Like/Not Like comparisons. The comparison constant and data must use the same code page for accurate comparison.
- Return values
-
= Btrieve::STATUS_CODE_NO_ERROR | Success. |
!= Btrieve::STATUS_CODE_NO_ERROR | An error has occurred. |
- See also
- Btrieve::StatusCodeToString