I have a navigation script that is failing on a particular ViewX client because the script is calling App.OpenWindowOnHead on Head 3, but that particular client only has 2 heads configured (one less monitor than all the other clients).
I'm trying to get around it by getting the script to return the max number of heads configured on the client and fall back to using that max number if the desired head number is greater than it.
I thought it would be a simple thing to do but I cannot find such a function at all in the help files.
Can what I proposed be done or is there another way to get around this issue?
Solved! Go to Solution.
This should do it
On Error Resume Next
OpenOnHead3
If Err.Number <> 0 Then
OpenOnHead2
End IF
This should do it
On Error Resume Next
OpenOnHead3
If Err.Number <> 0 Then
OpenOnHead2
End IF
Discuss challenges in energy and automation with 30,000+ experts and peers.
Find answers in 10,000+ support articles to help solve your product and business challenges.
Find peer based solutions to your questions. Provide answers for fellow community members!