MSI Factory 2.3

MSI.EnumFeatures

MSI.EnumFeatures

This is the first topic This is the last topic  

MSI.EnumFeatures

This is the first topic This is the last topic  

OverviewExamples

table MSI.EnumFeatures (

string ProductCode )

Example 1

-- Enumerate the features for the product.

tbFeatures = MSI.EnumFeatures("{78B82B0B-9AD9-40C0-B994-F72C21B52723}");

 

if (tbFeatures) then

   strMessage = "The following features were found:\r\n\r\n";

   for index, subfeature in tbFeatures do

       strMessage = strMessage.."Feature: "..subfeature.Feature.."\r\n".."Parent Feature: "..subfeature.ParentFeature.."\r\n\r\n";

   end

   -- Show a message with all of the features detected.

   Dialog.Message("Features Found", strMessage);

else

   Dialog.Message("Notice", "No features were found.");

end

Enumerates all of the features for a given product and shows their IDs and parent IDs in a dialog message. If an error occurs, or no features were found, an error message is shown.

See also: Related Actions


Learn More: Indigo Rose Software - MSI Factory - Buy Now - Contact Us