Datasheet::SetColCount

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

Set the number of columns in the DataSheet

Syntax

SetColCount(Cols)

Parameters

Cols
the number of columns in the DataSheet

Return

Examples

EX1

#Create Book1 with one sheet
import PyOrigin
wks=PyOrigin.FindWorksheet('Book1')
#Get the number of columns in active sheet
wks.SetColCount(5)

See Also

Datasheet::GetColCount