Item

From OriginLab Wiki

(Difference between revisions)(Link to this page as [[OriginCOM:Columns-Item]])
Jump to: navigation, search
Revision as of 05:12, 9 January 2009 (edit)
Sophy (Talk | contribs)

← Previous diff
Revision as of 08:33, 27 November 2009 (edit) (undo)
Echo (Talk | contribs)

Next diff →
Line 49: Line 49:
[[Category:Columns_(OriginCOM)|Item]] [[Category:Columns_(OriginCOM)|Item]]
-[[category:P1]]+[[category:P2]]

Revision as of 08:33, 27 November 2009


Contents

Description

Specify a column with an index

Syntax

VB: Property Get Item(Index As ByVal Object ) As Column
C++: Column Item(_variant_t Index )
C#: Column Item(var Index )

Parameters

Index
--

Remark

Examples

VB

    Sub Item()
        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 col As Origin.Column
        col = wks.Columns.Item(0) 'get first column
        MsgBox(col.Name.ToString())
    End Sub

Version Information

8.0SR2

See Also