|
-
Jan 9th, 2007, 11:12 AM
#1
Thread Starter
Fanatic Member
[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 
-
Jan 9th, 2007, 11:17 AM
#2
Fanatic Member
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
-
Jan 9th, 2007, 11:22 AM
#3
Thread Starter
Fanatic Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|