CdbField::GetFieldSize Property
Returns the number of bytes used in the database (rather than in memory) of a Memo or Long Binary Field object in the Fields collection of a Recordset object.
Syntax
LONGGetFieldSize(VOID);
Remarks
To determine the size of a Field object other than Memo and Long Binary types, use the Size property.
In an ODBCDirect workspace, the FieldSize property is not available in the following situations:
-
If the database server or ODBC driver does not support server-side cursors. (For example, Microsoft SQL Server version 4.21 does not support server-side cursors, so the FieldSize property is not available.)
-
If you are using the ODBC cursor library (that is, the DefaultCursorDriver property is set to dbUseODBC, or to dbUseDefault when the server does not support server-side cursors).
-
If you are using a cursorless query (that is, the DefaultCursorDriver property is set to dbUseNoCursor).