- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
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
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"
- Labels:
-
Scripting
Link copied. Please paste this link to share this article on your social media post.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
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.
