Documentation

width

Return field size of column in fetched data set

Syntax

colsize = width(cursor, colnum)

Description

colsize = width(cursor, colnum) returns the field size of the specified column number colnum in the fetched data set curs.

Examples

Retrieve the width of the first column of the fetched data set curs.

colsize = width(curs, 1)

colsize =

    11

The field size of column one is 11 characters (bytes).

To create fetched data sets using an ODBC connection, you can use the native ODBC interface. For details, see database.

Related Examples

See Also

| | | |

Was this topic helpful?