Results 1 to 3 of 3

Thread: [RESOLVED] is this possible??? returning two arrays back from a function

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Aug 2006
    Posts
    734

    Resolved [RESOLVED] is this possible??? returning two arrays back from a function

    Hi guys
    I pass a list and an array to a function. Now i was wondering whether it was possible to return both of these back when the function has finished what it is doing?

    (I am using .net compact framework 2.0)
    If your problem has been solved then please mark the thread [RESOLVED].
    If i have helped then please Rate my post

  2. #2
    Fanatic Member
    Join Date
    Aug 2006
    Location
    In my head
    Posts
    913

    Re: is this possible??? returning two arrays back from a function

    Send them into the function ByRef instead of ByVal and set the function as a boolean. You can test the function then to see if it succeeded or not and your list and array come back either way.

    D

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Aug 2006
    Posts
    734

    Re: is this possible??? returning two arrays back from a function

    Of course! Silly me! I completely forgot bout ByRef!
    But i dont need to test the function, i just need it to do something. Actually i just realised that i only need it to return the array.....the list doesn't change! lol I'm an idiot! lol Sorry for wastin people's time! I think i need to leave work now! lol (Only an hour left!) lol
    Thanks again
    If your problem has been solved then please mark the thread [RESOLVED].
    If i have helped then please Rate my post

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width