IASForm::RemoveAtIndex

The IASForm::RemoveAtIndex method removes a control with a specified index from a form.

Syntax

HRESULT RemoveAtIndex( long index );

Parameters

index
Index of a control.

Return Values

NOERROR indicates success. If an error occurs, the appropriate HRESULT value is returned.

Remarks

A control’s index may change as controls are added or removed. Identifiers, however, do not change. IASForm::RemoveAtIndex calls IASControl::Close for the control to be removed.