kaiiii
6 years agoRegular Contributor
How can I Count the row of test data in my excel sheet.
How can I Count the row of test data in my excel sheet.
Like:
Project.Variable.VariableName.IsEOF ---> used to check sheet is empty or not
Project.Variable.VariableName.ColumnCount --> used to check no of column in the sheet
similarly,
how can i find out the no of total rows in a sheet
There is no function/method/property of the DB Table variable type that will give you the explicit row count. So, you'll need to write code to do so.
function sheetText(){ var rowCount rowCount = 0 while (!Project.Variables.VariableName.IsEOF()) { rowCount++ Project.Variables.VariableName.Next() } Log.Message(rowCount) }