I
Ivan Weiss
I am trying to write my program following OOP the way it is meant to be
and am creating a class to represent an object representing a project
that the users will work on. Here is my code:
Public Class clsProject
Structure myProject
Dim myProjectID As Integer
Dim myCustomerID As Integer
Dim myProjectStatus As String
End Structure
Property ProjectID()
Get
myProjectID
End Get
Set(ByVal Value)
myProjectID = Value
End Set
End Property
End Class
Am I starting this right, should I be using a structure and should I use
Property's like I did there? Also, I am getting an error saying
myProjectID is not defined in the property function yet it is defined as
part of the structure. Am I accessing it wrong? This is very new to
me.
Thanks!
-Ivan
and am creating a class to represent an object representing a project
that the users will work on. Here is my code:
Public Class clsProject
Structure myProject
Dim myProjectID As Integer
Dim myCustomerID As Integer
Dim myProjectStatus As String
End Structure
Property ProjectID()
Get
myProjectID
End Get
Set(ByVal Value)
myProjectID = Value
End Set
End Property
End Class
Am I starting this right, should I be using a structure and should I use
Property's like I did there? Also, I am getting an error saying
myProjectID is not defined in the property function yet it is defined as
part of the structure. Am I accessing it wrong? This is very new to
me.
Thanks!
-Ivan