M
Miguel Dias Moura
Hello,
I created the class "document":
Public Class Document
Private Shared _title As String
Public Property Title() As String
Get
Return _title
End Get
Set(ByVal value As String)
If _title = value Then
Return
End If
_title = value
End Set
End Property
End Class
To set the property value I am using:
Dim MyDocument As New Document
MyDocument.Title = "My book title"
I need to be able to create "second level" properties. An example:
MyDocument.Author.Name = "Author Name"
Instead of having
MyDocument.AuthorName = "Author Name"
I inserted the class "Author", with property "Name" inside Class
Document.
It is not working. Could someone explain me how to create it?
Thank You,
Miguel
I created the class "document":
Public Class Document
Private Shared _title As String
Public Property Title() As String
Get
Return _title
End Get
Set(ByVal value As String)
If _title = value Then
Return
End If
_title = value
End Set
End Property
End Class
To set the property value I am using:
Dim MyDocument As New Document
MyDocument.Title = "My book title"
I need to be able to create "second level" properties. An example:
MyDocument.Author.Name = "Author Name"
Instead of having
MyDocument.AuthorName = "Author Name"
I inserted the class "Author", with property "Name" inside Class
Document.
It is not working. Could someone explain me how to create it?
Thank You,
Miguel