Class xbXBase
Chapter Updated 09/01/24
| Method | Description | Category |
|---|---|---|
| xbInt16 CloseAllTables() | Close all open tables. | Table |
| xbInt16 OpenHighestVersion( const xbString &sTableName, const xbString &sAlias, xbDbf &dbf, int dummy ) | Open highest version available for sTableName. | Table |
| xbInt16 OpenHighestVersion( const xbString &sTableName, const xbString &sAlias, xbDbf **dbf ) | Open highest version available for sTableName. | Table |
| xbDbf * Open( const xbString &sTableName, xbInt16 &iRc ) | Open the highest available version of the dbf file. Defaults to XB_READ_WRITE and XB_MULTI_USER mode. | Table |
| xbDbf * Open( const xbString &sTableName, const xbString &sAlias, xbInt16 iOpenMode, xbInt16 iShareMode, xbInt16 iVersion, xbInt16 &iRc ) | Open table. | Table |
| void DisableMsgLogging() | Disable logging routines. | Logging |
| void EnableMsgLogging () | Enable logging routines. | Logging |
| xbInt16 FlushLog() | Flush any queued logfile updates to disk. | Logging |
| const xbString &GetLogDirectory () const | Get the current logfile directory. | Logging |
| const xbString &GetLogFileName () const | Get the current logfile name. | Logging |
| const xbString &GetLogFqFileName() const | Get fully qualified logfile name. | Logging |
| xbBool GetLogStatus () const | Get the logging status. | Logging |
| void SetLogDirectory( const xbString &sLogFileDirectory ) | Set the log directory. Must be done while logging is off. | Logging |
| void SetLogFileName( const xbString &sLogFileName ) | Set the log file name. Must be done while logging is off. | Logging |
| void SetLogSize( size_t lSize ) | Set the logfile size. After the size is reached, the log file roll. | Logging |
| xbInt16 WriteLogBytes ( xbUInt32 lCnt, const char *p ) | Write lCnt bytes pointed to by pointer p to the logfile. | Logging |
| xbInt16 WriteLogMessage( const xbString &sLogMessage, xbInt16 iOutputOpt = 0 ) | Write a string to the logfile. | Logging |
| xbInt16 xbXBase::CreateFqn( const xbString &sDirIn, const xbString &sNameIn, const xbString &sExtIn, xbString &sFqnOut ) | Create fully qualified file name from directory, file name and optional extension. This routine sets the correct separators dependent on OS. | Misc |
| xbInt16 xbXBase::GetCmdLineOpt( xbInt32 lArgc, char **sArgv, xbString &sOptRqst, xbString &sParmOut ) xbXBase::GetCmdLineOpt( xbInt32 lArgc, char **sArgv, const char *sOptRqst, xbString &sParmOut ) | Parse command line values seeking given parameter info. | Misc |
| void xbSleep( xbInt32 lMillisecs ) | Sleep command, used mainly in lock commands for waiting between retries. | Misc |
| xbInt16 ABS( xbDouble dIn, xbDouble &dOut ) | dBASE ABS function. | Expression |
| xbInt16 ALLTRIM( const xbString &sIn, xbString &sOut ) | dBASE ALLTRIM function. | Expression |
| xbInt16 ASC( const xbString &s, xbDouble &dAscOut ) | dBASE ASC function. | Expression |
| xbInt16 AT( const xbString &sSrchFor, const xbString &sBase, xbDouble &dPos ) | dBASE AT function. | Expression |
| xbInt16 CDOW( xbDate &dInDate, xbString &sOutDow ) | dBASE CDOW function. | Expression |
| xbInt16 CHR( xbDouble dAsciCd, xbString &sOut ) | dBASE CHR function. | Expression |
| xbInt16 CMONTH( xbDate &dInDate, xbString &sOutMonth ) | dBASE CMONTH function. | Expression |
| xbInt16 CTOD( const xbString &sInDate, xbDate &dOutDate ) | dBASE CTOD function. | Expression |
| xbInt16 DATE( xbDate &dOutDate ) | dBASE DATE function. | Expression |
| xbInt16 DAY( const xbDate &dInDate, xbDouble &dOutDay ) | dBASE DAY function. | Expression |
| xbInt16 DEL( xbDbf * d, xbString &sOut, xbInt16 iRecBufSw = 0 ) | dBASE DEL function. | Expression |
| xbInt16 DELETED( xbDbf * d, xbBool &bOut, xbInt16 iRecBufSw = 0 ) | dBASE DELETED function. | Expression |
| xbInt16 DESCEND( const xbString &sIn,xbString &sOut ) xbInt16 DESCEND( const xbDate &dInDate, xbDate &dOutDate ) xbInt16 DESCEND( const xbDouble dIn, xbDouble &dsOut ) | dBASE DESCEND function. | Expression |
| xbInt16 DOW( const xbDate &sInDate, xbDouble &dDowOut ) | dBASE DOW function. | Expression |
| xbInt16 DTOC( xbDate &dInDate, xbString &sOutFmtDate ) | dBASE DTOC function. | Expression |
| xbInt16 DTOS( xbDate &dInDate, xbString &sOutFmtDate ) | dBASE DTOS function. | Expression |
| xbInt16 EXP( xbDouble dIn, xbDouble &dOut ) | dBASE EXP function. | Expression |
| xbInt16 IIF( xbBool bResult, const xbString &sTrueResult, const xbString &sFalseResult, xbString &sResult ) | dBASE IIF function. | Expression |
| xbInt16 INT( xbDouble dIn, xbDouble &dOut ) | dBASE INT function. | Expression |
| xbInt16 ISALPHA( const xbString &s, xbBool &bResult ) | dBASE ISALPHA function. | Expression |
| xbInt16 ISLOWER( const xbString &s, xbBool &bResult ) | dBASE ISLOWER function. | Expression |
| xbInt16 ISUPPER( const xbString &s, xbBool &bResult ) | dBASE ISUPPER function. | Expression |
| xbInt16 LEFT( const xbString &sIn, xbUInt32 lCharCnt, xbString &sOut ) | dBASE LEF function. | Expression |
| xbInt16 LEN( const xbString &sIn, xbDouble &dLen ) | dBASE LEN function. | Expression |
| xbInt16 LOG( xbDouble dIn, xbDouble &dOut ) | dBASE LOG function. | Expression |
| xbInt16 LOWER( const xbString &sIn, xbString &sOut ) | dBASE LOWER function. | Expression |
| xbInt16 LTRIM( const xbString &sIn, xbString & sOut ) | dBASE LTRIM function. | Expression |
| xbInt16 MAX( xbDouble dIn1, xbDouble dIn2, xbDouble &dOut ) | dBASE MAX function. | Expression |
| xbInt16 MIN( xbDouble dIn1, xbDouble dIn2, xbDouble &dOut ) | dBASE MIN function. | Expression |
| xbInt16 MONTH( xbDate &dInDate, xbDouble &dMonthOut ) | dBASE MONTH function. | Expression |
| xbInt16 RECCOUNT( xbDbf * d, xbDouble &dRecOut ) | dBASE RECCOUNT function. | Expression |
| xbInt16 RECNO( xbDbf * d, xbDouble &dRecOut ) | dBASE RECNO function. | Expression |
| xbInt16 REPLICATE( const xbString &sIn, xbUInt32 ulRepCnt, xbString &sOut ) | dBASE REPLICATE function. | Expression |
| xbInt16 RIGHT( const xbString &sIn, xbUInt32 iCharCnt, xbString &sOut ) | dBASE RIGHT function. | Expression |
| xbInt16 RTRIM( const xbString &sIn, xbString &sOut ) | dBASE RTRIM function. | Expression |
| xbInt16 SPACE( xbInt32 lCnt, xbString &sOut ) | dBASE SPACE function. | Expression |
| xbInt16 SQRT( xbDouble dBASE, xbDouble &dSqrRt ) | dBASE SQRT function. | Expression |
| xbInt16 STOD( const xbString &sIn, xbDate &sDateOut ) | dBASE STOD function. | Expression |
| xbInt16 STR( xbDouble dIn, xbString &sOut ) | dBASE function. | Expression |
| xbInt16 STR( xbDouble dIn, xbUInt32 ulLen, xbString &sOut ) xbInt16 STR( xbDouble dIn, xbUInt32 ulLen, xbUInt32 ulDec, xbString &sOut ) xbInt16 STR( xbDouble dIn, xbUInt32 ulLen, xbUInt32 ulDec, xbString &sPadChar, xbString &sOut ) | dBASE STR function. | Expression |
| xbInt16 STRZERO( xbDouble dIn, xbUInt32 ulLen, xbUInt32 ulDec, xbString &sOut ) | dBASE STRZERO function. | Expression |
| xbInt16 SUBSTR( const xbString &sIn, xbUInt32 ulStartPos, xbUInt32 ulLen, xbString &sOut ) | dBASE SUBSTR function. | Expression |
| xbInt16 TRIM( const xbString &sIn, xbString &sOut ) | dBASE TRIM function. | Expression |
| xbInt16 UPPER( const xbString &sIn, xbString &sOut ) | dBASE UPPER function. | Expression |
| xbInt16 VAL( const xbString &sIn, xbDouble &dOut ) | dBASE VAL function. | Expression |
| xbInt16 YEAR( xbDate &dInDate, xbDouble &dOutYear ) | dBASE YEAR function. | Expression |
