spreadsheetGetCellType

Returns the data type of a cell in the active sheet of a spreadsheet workbook as a string (for example a number, string or formula cell type), or "undefined" for an empty cell. Rows and columns are 1-based. The fluent member form is getCellType(row, column).

spreadsheetGetCellType(spreadsheetObj, row, column) → returns string

This function requires RustCFML.  Not supported on Lucee, Adobe ColdFusion, etc.

Argument Reference

spreadsheetObj any
Required

The spreadsheet workbook object.

row numeric
Required

1-based row index of the cell.

column numeric
Required

1-based column index of the cell.

Compatibility

RustCFML:

Not supported on wasm32.

Examples
Sample code invoking the spreadsheetGetCellType function

Inspect the types of a value cell and an empty cell.

wb = Spreadsheet("xlsx");
spreadsheetSetCellValue(wb, 42, 1, 1);
writeDump(spreadsheetGetCellType(wb, 1, 1));
writeDump(spreadsheetGetCellType(wb, 5, 5));

Signup for cfbreak to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.

Fork me on GitHub