Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Find Number of Columns

Hi All,

Is it possible to find out the number of columns present in an excel sheet in the script?

Thanks,

Asma

3 Replies
Gabriel
Partner - Specialist III
Partner - Specialist III

Hi,

In the script after you've loaded the excel file then use NoOfFields() function'

So in script below, vFieldNo in UI will give you the number of columns in excel.

MyTable:

LOAD

*

from ExcelSource

;

LET vFieldNo = NoOfFields('MyTable');

amit_saini
Master III
Master III

Hi,

You can use :

RecNo() as RawNo.

Thanks,
AS

Not applicable
Author

NoOfFields('table_name')

will return the number of column last loaded in the table