ToolsGrammarStatisticsArray

Syntax

ToolsGrammarStatisticsArray TwoDimensionalArray$()

Remarks

Performs a grammar check, and then fills a two-dimensional array with the available grammar statistics for the active document.

Argument

Explanation

TwoDimensionalArray$()

The two-dimensional array — which must be defined before ToolsGrammarStatisticsArray is run — to fill with the names of counts, averages, and indexes (the first dimension) and their associated statistics (the second dimension).


Example

This example defines a two-dimensional array for storing grammar statistics, fills the array with grammar statistics for the active document, and then inserts a two-column list of statistics at the insertion point (names of counts, averages, and indexes on the left and their associated statistics on the right, separated by tab characters):


numstats = CountToolsGrammarStatistics()
size = numstats -1
Dim docstats$(size, 1)
ToolsGrammarStatisticsArray docstats$()
For count = 0 To size
    InsertPara
    Insert docstats$(count, 0) + Chr$(9) + docstats$(count, 1)
Next

See Also

CountToolsGrammarStatistics()