G
Guest
I've written functinos to return readers and want to know if i'm using them
correctly and if there is a "more better" way.
Here is a simple example
Dim thsusr As New UsrSrv <--- component containing the function to get 1
user
Dim usrResult As SqlClient.SqlDataReader =
thsusr.fn_Isvalid(Me.txtUserID.Text, Me.txtPassword.Text)
If usrResult.HasRows Then
usrResult.Read()
......
......
thanks
kes
correctly and if there is a "more better" way.
Here is a simple example
Dim thsusr As New UsrSrv <--- component containing the function to get 1
user
Dim usrResult As SqlClient.SqlDataReader =
thsusr.fn_Isvalid(Me.txtUserID.Text, Me.txtPassword.Text)
If usrResult.HasRows Then
usrResult.Read()
......
......
thanks
kes