GetVarExtensions - method of the PmaTrendGroup object
Description:
Returns an array of all data extensions (of
ExtTrend objects) registered into the
PmaTrendGroup object (all trends of this trend group).
Syntax:
Array GetVarExtensions()
Return value:
1-dimensional array of values (
PmArray object for
JavaScript or
Array data type for
VBScript).
Example:
Obtains an array of references to all registered
ExtTrend objects of the
/Trend object (
PmaTrendGroup) with following listig of identifiers of each trend into the INFO system.
JavaScriptVBScriptSelect and copy to clipboard
var aExt = pMe.Pm("/Trend").GetVarExtensions();
var nExt = aExt.GetSize(1);
var iExt;
for (iExt = 0; iExt < nExt; iExt++)
{
Pm.Debug(aExt.GetItem(iExt).TrendId);
}
Dim aExt, nExt, iExt
aExt = pMe.Pm("/Trend").GetVarExtensions()
nExt = UBound(aExt) + 1
For iExt = 0 To nExt - 1
Pm.Debug aExt(iExt).TrendId
Next