GetColInfo - method of the PmgEventViewer object
Description:
Returns information regarding the properties of viewer columns.
Syntax:
Variant GetColInfo(String sWhat, Variant vColId)
Parameters:
sWhat | (String) Obtained information type. title - Displayed column name. count - Number of columns. The vColId parameter must be: null for JavaScript or Empty pro VBScript. |
---|
vColId | (Variant) Identifier or index of a single column containing the value to be returned. The value $all means that the value for all columns will be returned in the form of array (PmArray object). |
---|
Return values:
Returns the value or an array of values.
If an error occures, then the method returns: null for JavaScript or Empty pro VBScript (it can be tested by the Pm.IsValid method).
Example:
JavaScriptVBScriptSelect and copy to clipboard
var oViewer = pMe.Items("/Viewer");
var sTitle = oViewer.GetColInfo("title", 1);
Dim oViewer, sTitle
Set oViewer = pMe.Items("/Viewer")
sTitle = oViewer.GetColInfo("title", 1)
History:
Pm9.00.14: New option
"$all" for obtaining information about all columns.