AutoPlay Media Studio 9

Application.GetPageProperties

Application.GetPageProperties

This is the first topic This is the last topic  

Application.GetPageProperties

This is the first topic This is the last topic  

OverviewExamples

table Application.GetPageProperties (

string PageName )

Example 1

tbPageProperties = Application.GetPageProperties("Page1");

 

if (tbPageProperties) then

   strMessage = "The properties of the page are:\r\n\r\n";

   strKeywords = "Keywords: ";

   for index, value in pairs(tbPageProperties) do

       -- Check if the index is the Keywords table.

       if (index == "Keywords") then

           -- Check if the keywords table contains values.

           if (value) then

               for key_index, key_value in pairs(value) do

                   strKeywords = strKeywords..key_value..", ";

               end

               -- Trim the last comma.

               strKeywords = String.TrimRight(strKeywords, ", ");

           end

       else

           strMessage = strMessage..index..": "..value.."\r\n";

       end

   end

 

   Dialog.Message("Page Properties", strMessage..strKeywords);

end

Gets all of the properties for "Page1" and shows their values in a dialog message.

See also: Related Actions


Learn More: Indigo Rose Software - AutoPlay Media Studio - Buy Now - Contact Us