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

Get 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).

See Also

| | | |

Was this topic helpful?