Class xbCore
Chapter Updated 10/16/24
| Method | Description |
|---|---|
| void DisplayError( xbInt16 ErrorCode ) const | This routine prints a description for a specifed error to stdout. |
| xbString& GetDataDirectory() const void SetDataDirectory( const xbString &sDataDirectory ) |
Get and Set the current directory where the library routines expect to find the .DBF, .DBT, .NDX and .MDX files. |
| xbString& GetDefaultDateFormat() const void SetDefaultDateFormat( const xbString &sDefaultDateFormat ) |
Get and Set the current default date format used by the date formatting routines if no format specifier is provided. |
| xbInt16 GetEndianType() const | Returns the current Endian type of the machine the library is operating on. |
| const char *GetErrorMessage( xbInt16 ErrorCode ) const | Returns a pointer to an error message for a given error number. |
| xbBool GetDefaultAutoCommit() const void SetDefaultAutoCommit( xbBool bDefaultAutoCommit ) |
Get and Set the default auto commit status. If auto commit is on, the library will automatically post any updates to the database when navigating away from an updated record. |
| xbBool GetHomeDir( xbString &sHomeDirOut ) | Get the home directory for the current user. |
| xbString& GetLogDirectory() const void SetLogDirectory( const xbString &sLogDirectory ) |
Get and set the directory location for any system generated logfiles. |
| xbString& GetLogFileName() const void SetLogFileName( const xbString &sLogFileName ) | Returns the default log file name. |
| xbBool GetMultiUser() const void SetMultiUser( xbBool bMultiUser ) |
Get and set multi user status. This turns auto locking on and off. For better performance in single user applications, turn multuser off. |
| char GetPathSeparator() const | Get the path separator value for the current environment. Returns either \ (for Windows environment) or / (for Unix environment). |
| xbString& GetTempDirectory() const void SetTempDirectory( const xbString &sTempDirectory ) | Get and set the temp folder. |
| Sunset with version 4.1.8 xbInt16 GetUniqueKeyOpt() const xbInt16 SetUniqueKeyOpt( xbInt16 iUniqueKeyOpt ) |
Determines library behavior for unique key processing. The original dBASE product allowed duplicate recrds in the .DBF file when the unique option was specified for a given index tag.
The Xbase library supports either the original dBASE behavior (XB_EMULATE_DBASE), or the prevention of duplicate records for duplicate keys (XB_HALT_ON_DUPKEY). V4.1.8 replaced with GetDefaultIxTagMode() and SetDefaultIxTagMode() |
| xbInt16 GetDefaultLockRetries() const void SetDefaultLockRetries( xbInt16 iRetryCount ) |
Get and Set the number of times to attempt a lock |
| xbInt32 GetDefaultLockWait() const void SetDefaultLockWait( xbInt32 lRetryWait ) | Get and Set the wait time between lock attempts. |
| xbInt16 GetDefaultLockFlavor() const void SetDefaultLockFlavor( xbInt16 iLockFlavor ) | For future use. With current versions, only dBASE locking offsets are supported. |
| Sunset with version 4.1.11xbBool GetDefaultAutoLock() const void SetDefaultAutoLock( xbBool bAutoLock ) void EnableDefaultAutoLock() void DisableDefaultAutoLock() | Set, Get or update Auto Lock Status |
| xbInt16 GetCreateMdxBlockSize() const xbInt16 SetCreateMdxBlockSize( xbInt16 ulBlockSize ) | Set or get MDX Index block size. Must be a multiple of 512. |
| xbUInt32 GetDefaultBlockReadSize() const void SetDefaultBlockReadSize( xbUInt32 ulDfltBlockReadSize ) | Set or Get the default block size for Block Read functionality. Block reading is used to improve sequentential access performance. |
| xbUInt32 GetDefaultIxTagMode() const xbInt16 SetDefaultIxTagMode( XB_IX_DBASE_MODE || XB_IX_XBASE_MODE ) | Set or Get the default index tag mode. XB_IX_DBASE_MODE is used for max compatibility. |
