Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27365

Return array from a Function

$
0
0
How do you send back an array from a function?

In VBA you just assign an array:

Code:

Function arr...
    a=1
    b=2
    c=3
    arr=Array(a,b,c)
End Function
Sub retarr()
    x=1
    arrret=arr(x)
    aret=arret(0)
    bret==arret(1)
    cret==arret(2)
...
End Sub

How do you do it in vb.net and asp.net?

Viewing all articles
Browse latest Browse all 27365

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>