Sign in to follow this  
Followers 0
nitron

Return Array

3 posts in this topic

Hello,

I am facing a prob.

I need to return an array from a subroutine...

I know that this must be posible, for in Stringsplit a Array is returned...

can somebody tell me how to do that?

THX

Nitron

Share this post


Link to post
Share on other sites



Here's a small example:

Dim $MyVar = MyFunc()
MsgBox(0, "Notice", $MyVar[0] & ", " & $MyVar[1])

Func MyFunc()
    Local $Ret[2]

    $Ret[0] = 1
    $Ret[1] = 2

    Return $Ret
EndFunc

Share this post


Link to post
Share on other sites

Thanks :-) this was what i needed :-)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0