GetFieldSize Method
Applies To
ODynaset
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
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
Remarks
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.