bmains
I tried your suggestion:
Try
Dim da As SqlDataReader
myConn.Open()
da = selectCmd.ExecuteReader(CommandBehavior.SingleRow)
da.Read()
i = CType(da.Item("MemberID"), Integer)
Return i
da.Close()
myConn.Close()
Catch ex As Exception
Return i = 0
End Try
I still get -1. What does -1 mean? Does it mean i didn't return anything cuz I set the exception to 0 when it failed?
Please help me


