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. .
Sam HobbsPosted Dec 14, 2009, 2:28 PM
Srinivas KotraPosted Dec 14, 2009, 9:41 AM
naura paxPosted Nov 10, 2009, 7:32 AM
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!