Tänkte mig ha en klass som tar hand om adressuppgifter. Är jag på rätt väg?
Så långt jag har kommit är att hårdkoda alla poster med sina parametrar. Hur skulle Ni göra?
<code>
Public Class BasicInfo
Private _BAName As String
Public Property BAName_text() As String
Get
Return _BAName
End Get
Set(ByVal value As String)
_BAName = value
End Set
End Property
'
Private _BAName_maxlength As Integer
Public ReadOnly Property BAName_maxlength() As Integer
Get
Return _BAName_maxlength
End Get
End Property
Private _BAAdress As String
Public Property BAAdress_text() As String
Get
Return _BAAdress
End Get
Set(ByVal value As String)
_BAAdress = value
End Set
End Property
'
Private _BAAdress_maxlength As Integer
Public ReadOnly Property BAAdress_maxlength() As Integer
Get
Return _BAAdress_maxlength
End Get
End Property
osv ....
End Class
</code>