I tried your example and even simplified it. I have not finished yet, but
as far as I can tell there is nothing wrong in this:
Public Property Paid() As Boolean
Get
Return True
End Get
Set(ByVal Value As Boolean)
' mPaid = Value
call Paid_ValueChanged()
End Set
End Property
Private Sub Paid_ValueChanged()
' Update a database
End Sub
If <some condition> Then
Paid = True
End If
In other words I don't need mPaid. Am I right?
--
Anil Guptewww.keeninc.netwww.icinema.com
You need to change Paid into either a
property -------------------------------------------------------------
Private mPaid As Boolean
Public Property Paid() As Boolean
Get
Return mPaid
End Get
Set(ByVal Value As Boolean)
mPaid = Value
call Paid_ValueChanged()
End Set
End Property
Private Sub Paid_ValueChanged() ' Update a database
End Sub
-------------------------------------------------------------
or a method that accepts a param
-------------------------------------------------------------
Public Sub SetPaid(Value as Boolean)
mPaid = Value
Call Paid_ValueChanged
End Sub Private Sub Paid_ValueChanged() ' Update a database
End Sub
-------------------------------------------------------------