Application.GetPages

table Application.GetPages (

)

Example 1

all_pages = Application.GetPages();

Gets the names of all of the pages in the application and stores them in a table called "all_pages."

Example 2

-- Get the names of all of the pages in the application.
pages = Application.GetPages();

-- Create a string containing all of the page names.
page_string = "";
for index, pagename in pairs(pages) do
    page_string = String.Concat(page_string, pagename.."\r\n");
end

-- Display a dialog message with all of the page names.
result = Dialog.Message("Application Pages", "This application consists of the following pages: \r\n"..page_string);

Gets the names of all of the pages in the application and stores them in a table called "pages." Each page name from the table is accessed to create a string containing all of the pages. The string is then shown in a Dialog.Message action.

Tip: Instead of the "for" loop, the concatenation of the table elements could be accomplished using a Table.Concat action.

See also:  Related Actions