2.13.4 Cols


Description

This property is an integer value that holds the number of columns in the worksheet.

Syntax

VB: Property Get/Let Cols As Integer
C++: int Cols
C#: int Cols

Parameters

Remark

Examples

VB

    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

LabVIEW

The following LabVIEW Block Diagram shows how to set the worksheet's column number to 6.

Worksheetcols.png

Version Information

8.0SR2

See Also