Welcome to the new Schneider Electric Community

It's your place to connect with experts and peers, get continuous support, and share knowledge.

  • Explore the new navigation for even easier access to your community.
  • Bookmark and use our new, easy-to-remember address (community.se.com).
  • Get ready for more content and an improved experience.

Contact SchneiderCommunity.Support@se.com if you have any questions.

Close
Invite a Co-worker
Send a co-worker an invite to the Exchange portal.Just enter their email address and we’ll connect them to register. After joining, they will belong to the same company.
Send Invite Cancel
84805members
354263posts

Function with multiple ouputs

EcoStruxure Geo SCADA Expert Forum

Find out how SCADA systems and networks, like EcoStruxure Geo SCADA Expert, help industrial organizations maintaining efficiency, processing data for smarter decision making with IoT, RTU and PLC devices.

IgorSivakov
Lieutenant
Lieutenant
0 Likes
1
383

Function with multiple ouputs

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"

1 Reply 1
AdamWoodland
Commander Commander
Commander
0 Likes
0
374

Re: Function with multiple ouputs

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.