(Not recommended) Return field size of column in fetched data set
The width
function is not recommended. 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 = 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
.
attr
| cols
| columnnames
| fetch
| get