IJavaBlockStatement::AddStatementText

Inserts a new statement at the given index.

Syntax

HRESULT AddStatementText([in] BSTR bstrStatementText, [in] long nIndex);

Sub AddStatementText(ByVal bstrStatementText As String, ByVal nIndex As Long)

This syntax has these parts:

Parameters

bstrStatementText

String. Statement text.

nIndex

The index of the existing member before which the new statement should be inserted. To insert the new statement at the end of the class, pass –1 as the index.