TX Text Control ActiveX

ObjectNext Method

Method

This method returns the identifier of the object that follows the specified object in a Text Control's internal list of objects.

Syntax

TXTextControl.ObjectNext ObjectId, ObjectGroup

Parameters

ParameterDescription
ObjectIdSpecifies a valid object identifier. If this parameter is zero, the first object's identifier is returned.
ObjectGroupThis parameter specifies which kinds of objects are to be returned. It can be a sum of the values as described in Remarks. If this parameter is zero, the identifiers of all objects are returned.

Return Value

The method returns the next object's identifier. It returns zero when there is no following object.

Data Types

NameData type
ObjectIdInteger
ObjectGroupInteger
Return valueInteger

Remarks

The settings for ObjectGroup can include:

ValueDescription
&H1Returns only identifiers of objects positioned at a fixed geometrical position.
&H2Returns only identifiers of objects that act as single characters.
&H4Returns only identifiers of images.
&H8Returns only identifiers of objects which are externally created by the application.
&H10Returns only identifiers of OLE objects.
&H20Returns only identifiers of text frames.
&H40Returns only identifiers of objects that are anchored to a paragraph.
&H400Returns only identifiers of signature fields.

See Also