This one is a tricky to explain so I will try to use a lot of examples.
VB Code:
Public Class Customer Private _Name As New CustomerName Public Property Name() As CustomerName Get Return _Name End Get Set(ByVal value As CustomerName) _Name = value End Set End Property End ClassVB Code:
Public Class CustomerName Private _Original As String Private _Current As String Public Property Original() As String Get Return _Original End Get Set(ByVal value As String) _Original = value End Set End Property Public Property Current() As String Get Return _Current End Get Set(ByVal value As String) _Current = value End Set End Property End Class
What I would like to do is set the property like:without having to do:Code:Customer.Name="Brian"and then be able to access those extended properties so I can get the value ofCode:Customer.Name.Current="Brian"when updating the dataset.Code:Customer.Name.Original
I think the easiest way of asking is how do I make the 'CURRENT' property the default?
Thanks!!


Reply With Quote
