Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
virtual P6R::P6ERR P6R::p6IDBCResultSet::getString ( P6UINT32  index,
P6WCHAR pString,
P6UINT32  cBuffer,
P6UINT32 pWritten 
)
pure virtual

Return the value of the nth index, '? in SQLite' and '$ in Postgres', in the prepared statement with a string 'value'.

Note, that this method can be used to get the ISO 8601 string representation of any date type column (see getDate() below).

Parameters
index[ in ] Starts at 1, count from left to right of parameter in prepared statement to extract
pString[ in ] Pointer to a buffer to copy the buffer into, when NULL the required size is returned in pWritten.
cBuffer[ in ] Number of entries in the buffer pointed to by pString.
pWritten[ out ] Optional can be NULL, returns the number of characters written into pString. This parameter cannot be NULL when pString is also NULL.
Returns
SuccessP6R::eOk 
FailureP6R::eNoMemoryInsuffficient memory to properly initialize the component
P6R::eInvalidArgpString and pWritten are set to NULL.
P6R::eTooBigThe index is greater than the last valid parameter to extract.
P6R::eValueNULLString has a null value.
P6R::eTooSmallThe pString buffer is too small, the required size is set in pWritten.