The Btrieve key segment class.
More...
#include <btrieveCpp.h>
◆ BtrieveKeySegment()
BtrieveKeySegment::BtrieveKeySegment |
( |
| ) |
|
- Snippet
- C++ btest.cpp Python btest.py
btrieveKeySegment = btrievePython.BtrieveKeySegment()
assert(btrieveKeySegment != None)
◆ ~BtrieveKeySegment()
BtrieveKeySegment::~BtrieveKeySegment |
( |
| ) |
|
◆ GetACSMode()
◆ GetACSNumber()
int BtrieveKeySegment::GetACSNumber |
( |
| ) |
|
Get the alternate collation sequence number.
- Snippet
{
goto leave;
}
printf("\tACSNumber = %d\n", i);
- Return values
-
- Examples:
- bfileinformation.cpp.
◆ GetDataType()
◆ GetDescendingSortOrder()
int BtrieveKeySegment::GetDescendingSortOrder |
( |
| ) |
|
Get descending sort order.
- Snippet
{
goto leave;
}
printf("\tDescendingSortOrder = %s\n", i > 0 ? "Yes" : "No");
- Return values
-
- Examples:
- bfileinformation.cpp.
◆ GetDuplicateMode()
◆ GetIndex()
◆ GetKeyContinues()
int BtrieveKeySegment::GetKeyContinues |
( |
| ) |
|
Get key continues.
- Snippet
{
goto leave;
}
printf("\tKeyContinues = %s\n", i > 0 ? "Yes" : "No");
- Return values
-
- Examples:
- bfileinformation.cpp.
◆ GetLastStatusCode()
Get the last status code.
- Note
- This method is intended for use following methods which don't return a status code.
- Snippet
- Return values
-
= Btrieve::STATUS_CODE_NO_ERROR | Success. |
!= Btrieve::STATUS_CODE_NO_ERROR | An error has occurred. |
- See also
- Btrieve::StatusCodeToString
- Examples:
- bfileinformation.cpp.
◆ GetLength()
int BtrieveKeySegment::GetLength |
( |
| ) |
|
Get the length.
- Snippet
{
goto leave;
}
printf("\tLength = %d\n", i);
- Return values
-
- Examples:
- bfileinformation.cpp.
◆ GetModifiable()
int BtrieveKeySegment::GetModifiable |
( |
| ) |
|
Get modifiable.
- Snippet
{
goto leave;
}
printf("\tModifiable = %s\n", i > 0 ? "Yes" : "No");
- Return values
-
- Examples:
- bfileinformation.cpp.
◆ GetNullKeyMode()
◆ GetNullValue()
int BtrieveKeySegment::GetNullValue |
( |
| ) |
|
Get the null value.
- Snippet
{
goto leave;
}
printf("\tNullValue = %d\n", i);
- Return values
-
- Examples:
- bfileinformation.cpp.
◆ GetOffset()
int BtrieveKeySegment::GetOffset |
( |
| ) |
|
Get the offset.
- Snippet
{
goto leave;
}
printf("\tOffset = %d\n", i);
- Return values
-
- Examples:
- bfileinformation.cpp.
◆ GetUniqueValueCount()
long long BtrieveKeySegment::GetUniqueValueCount |
( |
| ) |
|
Get the unique value count.
- Note
- The signature for this method changed in PSQL v13 R2.
- Snippet
{
goto leave;
}
printf("\tUniqueValueCount = %lld\n", uniqueValueCount);
- Return values
-
- Examples:
- bfileinformation.cpp.
◆ SetDescendingSortOrder()
Set descending sort order.
- Parameters
-
[in] | setDescendingSortOrder | Enable descending sort order? |
- Description
- Descending sort order is disabled by default.
- Snippet
- Return values
-
= Btrieve::STATUS_CODE_NO_ERROR | Success. |
!= Btrieve::STATUS_CODE_NO_ERROR | An error has occurred. |
- See also
- Btrieve::StatusCodeToString
- Examples:
- bindexattributes.cpp.
◆ SetField()
Set the field.
- Parameters
-
- Description
- Key segments have no field initially. Offset plus length is limited to Btrieve::MAXIMUM_RECORD_LENGTH.
- Snippet
- C++ btest.cpp Python btest.py
rc = btrieveKeySegment.SetField(0, 1, btrievePython.Btrieve.DATA_TYPE_UNSIGNED_BINARY)
assert(rc == btrievePython.Btrieve.STATUS_CODE_NO_ERROR), "Error: BtrieveKeySegment::SetField():%d:%s.\n" % (rc, btrievePython.Btrieve_StatusCodeToString(rc))
- Return values
-
= Btrieve::STATUS_CODE_NO_ERROR | Success. |
!= Btrieve::STATUS_CODE_NO_ERROR | An error has occurred. |
- See also
- Btrieve::StatusCodeToString
- Examples:
- bfilter.cpp, bindexattributes.cpp, bkeyonly.cpp, block.cpp, bpercentage.cpp, btest.cpp, btestvlr.cpp, and Test_BTRV2.cpp.
◆ SetNullKeyMode()
◆ SetNullValue()
Set the null value.
- Parameters
-
[in] | nullValue | The null value. |
- Description
- Null value defaults to zero.
- Snippet
- Return values
-
= Btrieve::STATUS_CODE_NO_ERROR | Success. |
!= Btrieve::STATUS_CODE_NO_ERROR | An error has occurred. |
- See also
- Btrieve::StatusCodeToString
- Examples:
- bindexattributes.cpp.