8.1.7.5 Datasheet::GetColCount

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 columns in active worksheet.

Syntax

GetColCount()

Parameters

Return

Get the number of columns in active worksheet.

Examples

EX1

import PyOrigin
wks=PyOrigin.FindWorksheet('[Book1]Sheet1')
#Get the number of columns in active sheet
print('There are %d columns in sheet' % wks.GetColCount())

See Also

Datasheet::SetColCount