MSI Factory 2.3

MSI.GetFeatureUsage

MSI.GetFeatureUsage

This is the first topic This is the last topic  

MSI.GetFeatureUsage

This is the first topic This is the last topic  

OverviewExamples

table MSI.GetFeatureUsage (

string ProductCode,

string FeatureID )

Example 1

-- Get the usage metrics for the product feature.

tbFeatureMetrics = MSI.GetFeatureUsage("{78B82B0B-9AD9-40C0-B994-F72C21B52723}", "MyFeature");

 

-- Check if it was successful.

if (tbFeatureMetrics) then

   strMessage = "The feature's usage metrics are:\r\n\r\n";

   strMessage = strMessage.."Usage Count: "..tbFeatureMetrics.UsageCount.."\r\n";

   strMessage = strMessage.."Day: "..tbFeatureMetrics.Day.."\r\n";

   strMessage = strMessage.."Month: "..tbFeatureMetrics.Month.."\r\n";

   strMessage = strMessage.."Year: "..tbFeatureMetrics.Year.."\r\n";

   Dialog.Message("Feature Usage", strMessage);

else

   -- Show a message with the error.

   Dialog.Message("Error", "Could not get product feature usage metrics.");

end

Gets the usage metrics of a product feature with the ID "MyFeature," and shows its values in a dialog message.

See also: Related Actions


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