This method/property/event is considered obsolete and is functional only if the "Level of integration of panel viewer and the local application" configurator is set to full - FULL access from scripts to the whole application (only for VBScript and if the "Enable multiple opening of local panel" configurator IS NOT SET.
Instead of this property it is better to use the PmgRoot.ClientType property.
if (pMe.PmPanel.ViewerType == 1)
//algorithm for local panel
//algorithm for Web