-
Jan 30th, 2021, 02:27 PM
#1
Thread Starter
New Member
-
Jan 31st, 2021, 12:14 AM
#2
Re: Vb Function
Sure... you can return an array, a structure, or a class. Take your pick.
-tg
-
Jan 31st, 2021, 12:39 AM
#3
Thread Starter
New Member
Re: Vb Function
Thank you Tg
Can you post any example of that..
-
Jan 31st, 2021, 04:05 AM
#4
Re: Vb Function
Originally Posted by nagasudheer. thota
Thank you Tg
Can you post any example of that..
Code:
Function MyParamReflectionFunc(a, b, c)
MyParamReflectionFunc = Array(a, b, c)
End Function
The multiple result-values of this little "Param-Reflection-Function" come in an Array:
- e.g. when called like that: Dim ResultArr: ResultArr = MyParamReflectionFunc(1, "xyz", 123.456)
- a then sitting behind ResultArr(0)
- b behind ResultArr(1)
- ... etc
Olaf
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|