Thread: Bind a Label
View Single Post
 
Old January 3rd, 2007, 05:13 PM
dparsons dparsons is offline
Wrox Author
Points: 13,255, Level: 49
Points: 13,255, Level: 49 Points: 13,255, Level: 49 Points: 13,255, Level: 49
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2005
Location: Ohio, USA
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

First, your function is wrote incorrectly as these 2 lines

myReader.Close ( )
myConn.Close ( )

Will never get called. Move them above your return statement. If you want to bind the label to the result of that function, return a string. So something like:

Dim sString as string = myReader("column")

return sString

-------------------------
I will only tell you how to do it, not do it for you.
Unless, of course, you want to hire me to do work for you.

^^Thats my signature