2.34.7 Index
Description
Indicate the position of this object in current container
Syntax
VB: Property Get/Let Index As Integer
C++: int Index
C#: int Index
Remark
Examples
VB
Sub GetIndex() Dim app As Origin.IOApplication Dim obj As Origin.OriginObject app = New Origin.ApplicationSI obj = app.FindWorksheet("[body]body") If obj Is Nothing Then MsgBox("Can not get specified object") Exit Sub End If MsgBox(obj.Index) 'if the specified sheet is the third one, Index will be two End Sub
Version Information
8.0SR2