GetVarExtensions - method of the PmaCommGroup object
Description:
Returns an array of all data extensions (of
ExtComm objects) registered in the
PmaCommGroup object (all items of this group).
Syntax:
Array GetVarExtensions()
Return value:
1-dimensional array (
PmArray object for
JavaScript or
Array data type for
VBScript).
Example:
JavaScriptVBScriptSelect and copy to clipboard
// Obtains an array of references to all registered ExtComm objects PmaCommGroup of the /Comm/Group1 object:
var aExt = pMe.Pm("/Comm/Group1").GetVarExtensions();
var nExt = aExt.GetSize(1);
var iExt;
for (iExt = 0; iExt < nExt; iExt++)
{
var oExt = aExt.GetItem(iExt);
// Data extension = ExtComm object
// Lists the identifier of each item into the INFO system:
Pm.Debug(oExt.ItemId);
// Sets the quality to the variable (to which the data extension belongs) to 24=Bad:CommFailure:
oExt.Var.Quality = 24;
}
' Obtains an array of references to all registered ExtComm objects PmaCommGroup of the /Comm/Group1 object:
Dim aExt
aExt = pMe.Pm("/Comm/Group1").GetVarExtensions()
Dim nExt
nExt = UBound(aExt) + 1
Dim iExt
For iExt = 0 To nExt - 1
Dim oExt
Set oExt = aExt(iExt)
' Data extension = ExtComm object
' Lists the identifier of each item into the INFO system:
Pm.Debug(oExt.ItemId)
' Sets the quality to the variable (to which the data extension belongs) to 24=Bad:CommFailure:
oExt.Var.Quality = 24
Next