davidcahan
asked on
Need Help Building My First Class
I'm building my first class for my website project. The Class will need to define my User entity as well as contain some subroutines for SelectUser, UpdateUser, DeleteUser etc etc. I have no problem with the subroutines. For some reason I can't for the life of me figure out where and how i define my "User". Can someone show me an example of how to architect this class. Let's just assume that a User will have the following properties
ID
FirstName
LastName
Email
Address
IsActive
And then how i would instantiate an instance of a User object on one of my pages. Or basically, how i'm going to "tie it together" into one of my pages. For instance, my login page.
ID
FirstName
LastName
Address
IsActive
And then how i would instantiate an instance of a User object on one of my pages. Or basically, how i'm going to "tie it together" into one of my pages. For instance, my login page.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
thanks for the help.
ASKER
Public function getUser(byVal UserID as Integer) as User
DO I DIM A USER IN HERE? dim u as New User()
return u
End Function