Main Content


(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.


colsize = width(curs,colnum)


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


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

colsize = width(curs,1)

colsize =


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