EcoStruxure Geo SCADA Expert Forum
Schneider Electric support forum about installation, configuration, integration and troubleshooting of EcoStruxure Geo SCADA Expert (ClearSCADA, ViewX, WebX).
Link copied. Please paste this link to share this article on your social media post.
Posted: 2020-05-19 07:49 PM . Last Modified: 2023-05-03 12:14 AM
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?
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2020-05-20 06:23 AM
This should do it
On Error Resume Next
OpenOnHead3
If Err.Number <> 0 Then
OpenOnHead2
End IF
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2020-05-20 06:23 AM
This should do it
On Error Resume Next
OpenOnHead3
If Err.Number <> 0 Then
OpenOnHead2
End IF
Link copied. Please paste this link to share this article on your social media post.
Create your free account or log in to subscribe to the board - and gain access to more than 10,000+ support articles along with insights from experts and peers.