nitron Posted November 28, 2007 Share Posted November 28, 2007 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 Link to comment Share on other sites More sharing options...
Emperor Posted November 28, 2007 Share Posted November 28, 2007 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 Link to comment Share on other sites More sharing options...
nitron Posted November 28, 2007 Author Share Posted November 28, 2007 Thanks :-) this was what i needed :-) Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now