Oracle® Objects for OLE C++ Class Library Developer's Guide 10g Release 2 (10.2) Part Number B14308-01 |
|
Applies To
Description
This method returns the length of the field as stored locally on the client.
Usage
long GetFieldSize(int index) const
long GetFieldSize(const char *fieldname) const
Arguments
Arguments |
Description |
---|---|
index |
The 0-based index of the field. The index is the position of the field in the SQL query that created the current record set. |
fieldname |
The name of the field, as expressed in the SQL query |
This method will return turn number of bytes used to store the field on the client. It will always return a 0 for long or long raw fields.
To get the size of a long or long raw field as stored on the server, use GetFieldServerSize.
Return Value
The size of the field; 0 on error.