abfOpenComponentByIndex()

Opens an existing component in the currently open request.

Syntax

intabfOpenComponentByIndex(int idx);

Inputs

idx
The name of the component to be opened.

Return Value

0
On success
1
On failure (indicates component does not exist)

Example

int ret;
ret = abfOpenComponent("X");
if (ret)
	abfNewComponent("X"):
	abfOpenComponent("X");
}

Comments

This function must be called after a request has been opened.

Only one component can be open at a time.

Indexes are zero-based.