Functions in Vb.net
Hi Experts ,
I have a problem now with Functions, here is my code
Public function Report(Rollno as srtring , Name as string , Class as string)
-------statements--------
return nothing
end function
now when i call the function it is not calling the function . . .
call Report(form2.textbox1.text as srtring , form2.textbox1.text as string , form2.textbox1.text as string)
The problem is that the function is not getting called or invoked.
I dont know what's the problem. .
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.

naura paxRank #2,843 · 502 reputationPosted Nov 10, 2009, 2:32 AM EST
by the way in this line "call Report(form2.textbox1.text as srtring , form2.textbox1.text as string , form2.textbox1.text as string)" do you really have to specify textbox1.text's datatype i mean could it be written like :
"Report(form2.textbox1.text, form2.textbox1.text, form2.textbox1.text )"
Just wondering!
Srinivas KotraRank #8,059 · 229 reputationPosted Dec 14, 2009, 4:41 AM EST
Sam HobbsRank #107 · 20.5K reputationPosted Dec 14, 2009, 9:28 AM EST