I want to break my code into another function, as it is used by 3 functions...
Dim IAdapter As New IDataSetTableAdapters.MemberTableAdapter
Dim member As IDataSet.MemberDataTable
member = IAdapter.GetDataByUserName(username)
' each function has a different "GetDataBy" above.... it might be by userName, UID, or email....
'But the below code stays the same in all of them....
' So How do I pass "member" to a function and then within the function retrieve it and use it as per below?
Dim userID As Decimal = 0
Dim password As String = ""
If member.Rows.Count > 0 Then
If Not member(0).userid = Nothing Then _
userID = member(0).userid
If Not member(0).IspasswordNull Then _
password = member(0).password