Welcome to the new Schneider Electric Community

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

Close
Important Announcement: WELCOME to the new Schneider Electric Community! Community is now no longer part of Exchange, and is now rebranded under se.com. If you have any bookmarks and links saved, we request you to update them to ensure that you continue accessing our community from this new location. For any issues that you might encounter as part of this change, please reach out to SchneiderCommunity.Support@se.com, and the team will help to get your issues resolved.
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
82537members
350142posts

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
362

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
353

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.