Application.MakeKeywordIndex

table Application.MakeKeywordIndex (

boolean SortPages = true )

Example 1

tbKeywordIndex = Application.MakeKeywordIndex();

if (tbKeywordIndex) then
strTempString = "";
for key_index, page_table in pairs(tbKeywordIndex) do
for page_index, page_value in pairs(page_table) do
strTempString = strTempString .. key_index.." - "..page_index..": "..page_value.."\r\n";
end
end
Dialog.Message("Index Results", strTempString);
end

Makes an index of keywords defined on all pages and shows each keyword and the pages it was found on in a dialog message.

See also: Related Actions