Returns the index of the node with the given node number.

Syntax:

GetIndex( ProjectFile As ProjectFile, NodeNumber As Long ) As Long
Return: Long
Parameters: ProjectFile Project file of the node to be added.
NodeNumber Node number of the node for which the index is returned.
Example:
Sub TestTextTableView()
Dim View As TextTableView
Dim ProjFile As ProjectFile
Dim TU As TransUnit
Dim Index As Long

Set View = Application.ActiveProject.ProjectDocument.TextTableView
Set ProjFile = Application.ActiveProjectFile
Set TU = Application.ActiveTransUnit

Index = View.GetIndex(ProjFile, TU.Number)

If (View.RemoveAt(Index)) Then
    Index = View.Add(-1, ProjFile, TU.Number)
    View.Refresh (-1)
End If

See also:

Class TextTableView


Last Updated: 04/27/05