LineFromChar()

Syntax:

LineFromChar( CharIndex )

Return:

The index position of the line on which the CharIndex was found.

Parameters:

CharIndex - The Index position of the specified character, the index is a zero-based index. CharIndex must be an integer. This parameter is required.

Remarks:

This function will return the line number on which the CharIndex was found. The lines within a Text object also start with a zero index position.

image\Script_Button.jpgExamples