The Btrieve bulk create result class.
More...
#include <btrieveCpp.h>
The Btrieve bulk create result class.
- Examples
- btestbulk.cpp.
◆ BtrieveBulkCreateResult()
BtrieveBulkCreateResult::BtrieveBulkCreateResult |
( |
| ) |
|
- Snippet
- C++ btestbulk.cpp Python btestbulk.py
btrieveBulkCreateResult = btrievePython.BtrieveBulkCreateResult()
assert(btrieveFile != None)
◆ ~BtrieveBulkCreateResult()
BtrieveBulkCreateResult::~BtrieveBulkCreateResult |
( |
| ) |
|
◆ GetLastStatusCode()
Get the last status code.
- Note
- This method is intended for use following methods which don't return a status code.
- Snippet
- C++ btestbulk.cpp
if ((recordCount = btrieveBulkCreateResult.
GetRecordCount()) != (MAX_X - MIN_X + 1))
{
goto leave;
}
Python btestbulk.py rc = btrieveBulkCreateResult.GetRecordCount()
assert(rc == (max_x - min_x + 1)), "Error: BtrieveBulkCreateResult::GetRecordCount():%d:%s.\n" % (rc, btrievePython.Btrieve_StatusCodeToString(btrieveBulkCreateResult.GetLastStatusCode()))
- Return values
-
= Btrieve::STATUS_CODE_NO_ERROR | Success. |
!= Btrieve::STATUS_CODE_NO_ERROR | An error has occurred. |
- See also
- Btrieve::StatusCodeToString
- Examples
- btestbulk.cpp.
◆ GetRecordCount()
int BtrieveBulkCreateResult::GetRecordCount |
( |
| ) |
|
Get the record count.
- Snippet
- C++ btestbulk.cpp
if ((recordCount = btrieveBulkCreateResult.
GetRecordCount()) != (MAX_X - MIN_X + 1))
{
goto leave;
}
Python btestbulk.py rc = btrieveBulkCreateResult.GetRecordCount()
assert(rc == (max_x - min_x + 1)), "Error: BtrieveBulkCreateResult::GetRecordCount():%d:%s.\n" % (rc, btrievePython.Btrieve_StatusCodeToString(btrieveBulkCreateResult.GetLastStatusCode()))
- Return values
-
- Examples
- btestbulk.cpp.
◆ GetRecordCursorPosition()
long long BtrieveBulkCreateResult::GetRecordCursorPosition |
( |
int | recordNumber | ) |
|
Get the record cursor position.
- Note
- The signature for this method changed in PSQL v13 R2.
- Parameters
-
[in] | recordNumber | The record number. |
- Snippet
- C++ btestbulk.cpp Python btestbulk.py
rc = btrieveBulkCreateResult.GetRecordCursorPosition(i)
assert(rc >= 0), "Error: BtrieveBulkCreateResult::GetRecordCursorPosition():%d:%s.\n" % (rc, btrievePython.Btrieve_StatusCodeToString(rc))
- Return values
-
- Examples
- btestbulk.cpp.