pothuri Posted May 27, 2004 Posted May 27, 2004 hi all... I have to calculate two or three array variables in a function and return all these values to the main program...i know that a function can only return one value and a procedure doesnt return any values.......Is there any way that i could program such that i can return more than one value to the main program??......any help would be appreciated. thanx Quote
wessamzeidan Posted May 27, 2004 Posted May 27, 2004 you can put these values in an array and return the array Quote Proudly a Palestinian Microsoft ASP.NET MVP My Blog: wessamzeidan.net
pothuri Posted May 27, 2004 Author Posted May 27, 2004 thnx for the reply....my array sizes are arnd 50000 by 5(or 10) so if i append these 2 or 3 arrays into one array in the function and then separate those back in the main program.....its going to be a very bulky......isnt there any simpler solution???? Quote
praveensg Posted May 27, 2004 Posted May 27, 2004 guess you can pass the variables by reference. that way changes to their values are reflected back in the calling program too. Quote
bungpeng Posted May 28, 2004 Posted May 28, 2004 Create your own object (class) to handle those data and return this object Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.