8.1.7.6 Datasheet::GetRowCount

It is recommended that you switch to the originpro package. PyOrigin is primarily for users who need to work with Origin version prior to 2021.


Description

Get the number of rows in active worksheet.

Syntax

GetRowCount()

Parameters

Return

The number of rows in active worksheet.

Examples

EX1

#Create Book1 with one sheet
import PyOrigin
wks=PyOrigin.FindWorksheet('Book1')
#Get the number of columns in active sheet
print('There are %d rows in active sheet' % wks.GetRowCount())

See Also

Datasheet::SetRowCount