Main Content


(Removed) Return field size of column in fetched data set

The width function has been removed. 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.

Version History

Introduced before R2006a

expand all

Errors starting in R2022a

See Also