ParagraphLength()

Syntax:

textObject.ParagraphLength( ParaIndex )

Return:

An integer indicating the number of characters in the paragraph specified in the parameter ParaIndex. If the number entered in ParaIndex is not a valid paragraph, the Return Value is -1.

Parameter:

ParaIndex – the number of the paragraph you want to check. ParaIndex must be an integer. The paragraphs are numbered using a zero-based index. This parameter is required and the default is 0 (i.e. the first paragraph).

Remarks:

This function returns the number of characters in a paragraph. This function is often used with the ParagraphIndex function and is useful if you want to replace, insert or select text in a particular paragraph

image\Script_Button.jpgExamples