Software Developer's Kit - ChemDraw

Send comments on this topic
NumRows Property
See Also 

Description

Member of ChemDraw Control.Table.

Returns the number of rows.

Property type

Read-only property

Syntax

Visual Basic
Public Property NumRows() As Long

Return Type

Long

Remarks

Returns the number of rows in this table.

Example

'Declares variable vTable
 Dim vTable As ChemDrawControl10Ctl.Table
'Checks that there is a Table loaded in the variable
 If  Selection.Tables.Count < 1 Then
     Exit Sub
 End If

 Private Sub cmdCommand_Click() 
    'Returns the number of rows in vTable 
     Text1.text = MyTable.NumRows
 End Sub

See Also