Class xbXBase
Chapter Updated 04/28/23
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 |