Home All Groups Group Topic Archive Search About

Passing 2-D Array from one function to another

Author
12 Oct 2006 7:58 AM
hotpars
Hello,

I am getting info. from database and storing into 2-D array.

And another function getting this array and do process.

But problem I am getting is.

1. How can I return 2-D array from first function.
2. How can I pass 2-D array from first function to second function.
3. How can I get 2-D array to second function via parameter.

And I have this 2 function in different ".vb" class.

Please let me know your suggections.

Thank you very much in advance.

Regards,
Hotpars

Author
12 Oct 2006 6:54 PM
GhostInAK
Hello hotp***@gmail.com,

DONT USE ARRAYS FOR DATABASE WORK.  You get the data back in a datatable..
just pass that around.

-Boo

Show quoteHide quote
> Hello,
>
> I am getting info. from database and storing into 2-D array.
>
> And another function getting this array and do process.
>
> But problem I am getting is.
>
> 1. How can I return 2-D array from first function.
> 2. How can I pass 2-D array from first function to second function.
> 3. How can I get 2-D array to second function via parameter.
> And I have this 2 function in different ".vb" class.
>
> Please let me know your suggections.
>
> Thank you very much in advance.
>
> Regards,
> Hotpars