How to return multiple values from a function [Resolved]

Posted by Thiru under VB.NET on 3/23/2012 | Points: 10 | Views : 9025 | Status : [Member] | Replies : 4
Hi,

textbox1.text= fn_add(a,b)

public function fn_add(a as integer, b as integer) as integer
dim c as integer = a + b
return c
end function


As in the above example i can get only c value
i wish to get all the three values a,b and c

How to do?
regards,
Thiru.




Responses

Posted by: Patel28rajendra on: 3/23/2012 [Member] Starter | Points: 50
Posted by: Sksamantaray on: 3/23/2012 [Member] Silver | Points: 50

Up
0
Down

Resolved
Hi,
For your reference:
http://www.c-sharpcorner.com/UploadFile/mahesh/out_and_ref11112005002102AM/out_and_ref.aspx

Thanks,
Sanjay

Thiru, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Balajikcp8 on: 3/23/2012 [Member] Starter | Points: 25

Up
0
Down
You can concatenate as strings and split or use array

Thiru, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Thiru on: 3/24/2012 [Member] Starter | Points: 25

Up
0
Down
Hi Balaji,
Can you explain with any example please.


Thiru, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response