Subscribing is a smart move!
You can subscribe to this forum after you log in or create your free account.
Geo SCADA Knowledge Base
Access vast amounts of technical know-how and pro tips from our community of Geo SCADA experts.
Originally published on Geo SCADA Knowledge Base by sbeadle1 | June 09, 2021 09:45 PM
'be careful using this line - error handling is now up to youOn Error Resume Next...'try and connectobjserver.connect "system name", "username", "password"'now display any error messagemsgbox Err.Description
Set obj = objServer.FindObject("Something that doesnt exist") 'the object does not existIf obj Is Nothing Then'No object was found so display an error messageMsgBox "Error: object not found"Else'do something useful with the objectEnd If
Set oAgg = obj.Aggregate("Historic")oAgg1.Property("Compress") = 1
Create your free account or log in to subscribe to the forum - and gain access to more than 10,000+ support articles along with insights from experts and peers.