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"
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.
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!