XBSQL: An SQL wrapper for the XBase DBMS library

Next Previous Table of Contents

## 6. The XBSQLValue class

The XBSQLValue class contains values, to be passed to and returnded from queries.

The main methods of interest are listed below:

- XBSQLValue::XBSQLValue = (type)
  Constructor; type can be const XBSQLValue &, const char *, int, double or void *; the last case is just used as a convenience to set nul.

- const XBSQLValue &operator = (type)
  Assign a value; the same types apply as for the constructor.

- const char *XBSQLValue::getText () const
  Returns the raw text value. Note that in the case of a Memo value, the text may contain nulls, however for convenience, an additional null is added.

- int XBSQLValue::getLength () const
  If the value contains a Memo value, returns the data length. Otherwise, the value is undefined.