Here is an interesting problem. An object used for VBScripting with Norton Ghost 10 is reported as a string array, yet an attempt to access any of its elements produces the error “Object not a collection.”
The object is: [tt]Set Ghost = CreateObject("Symantec.ProtectorAuto")[/tt]
[ul][tt]IsArray(Ghost.SupportedEventMonitors)[/tt] reports “true”
[tt]TypeName(Ghost.SupportedEventMonitors)[/tt] reports “string”
[tt]LBound(Ghost.SupportedEventMonitors)[/tt] reports 0
[tt]UBound(Ghost.SupportedEventMonitors)[/tt] reports 4[/ul]
Yet, a subscript reference such as [tt]Ghost.SupportedEventMonitors(1)[/tt] (or the use of the [tt] For Each oEventMonitor In Ghost.SupportedEventMonitors[/tt] technique) produces the error “Object not a collection.”
How can I gain access to the elements of this string array?
Thank you for your assistance.
The object is: [tt]Set Ghost = CreateObject("Symantec.ProtectorAuto")[/tt]
[ul][tt]IsArray(Ghost.SupportedEventMonitors)[/tt] reports “true”
[tt]TypeName(Ghost.SupportedEventMonitors)[/tt] reports “string”
[tt]LBound(Ghost.SupportedEventMonitors)[/tt] reports 0
[tt]UBound(Ghost.SupportedEventMonitors)[/tt] reports 4[/ul]
Yet, a subscript reference such as [tt]Ghost.SupportedEventMonitors(1)[/tt] (or the use of the [tt] For Each oEventMonitor In Ghost.SupportedEventMonitors[/tt] technique) produces the error “Object not a collection.”
How can I gain access to the elements of this string array?
Thank you for your assistance.