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: 2021-05-27 03:02 AM . Last Modified: 2023-05-03 12:03 AM
How to make function wutth multiple outputs? For example, I need to get array of string and some numerical data. I tried to use classes, but for some reason I can't define data type of function, using "dim [...] as"
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: 2021-05-27 03:45 PM
Assuming you're talking about VBScript on mimics. Not possible using proper coding methods, it is a limitation of VBScript that a function can only return one thing. It doesn't support ByRef or anything.
You could probably cludge it using global variables, or some other scratch pad type thing for the string such as the Registry functions, hidden text boxes on the mimic or metadata against some database object like the user.
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 forum - and gain access to more than 10,000+ support articles along with insights from experts and peers.