This property is an integer value that holds the number of columns in the worksheet.
VB: Property Get/Let Cols As Integer
C++: int Cols
C#: int Cols
Sub Cols() Dim app As Origin.IOApplication Dim wks As Origin.Worksheet app = New Origin.ApplicationSI wks = app.FindWorksheet("") If wks Is Nothing Then MsgBox("Can not find active worksheet") Exit Sub End If Dim nCols As Integer nCols = wks.Cols MsgBox("Number of columns in worksheet is " + nCols.ToString()) End Sub
The following LabVIEW Block Diagram shows how to set the worksheet's column number to 6.
8.0SR2