Main Content

width

(To be removed) Return field size of column in fetched data set

The width function will be removed in a future release. There is no replacement for this functionality. To import data, use the fetch function. For details, see Compatibility Considerations.

Syntax

colsize = width(curs,colnum)

Description

colsize = width(curs,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.

Compatibility Considerations

expand all

Warns starting in R2021a

See Also

| | | |

Introduced before R2006a