probably better done with a class -
say the class is clsValidate, set the Validate property by instantiating the class.
VB Code:
Dim retValue as Boolean
Dim oValidate As clsValidate
Set oValidate = New clsValidate
' write value
oValidate.Validate = True
' read value
retValue = oValidate.Validate
you can then read/write to this property anytime..
put this code into a class:
VB Code:
Private pValidate As Boolean
Public Property Get Validate() As Boolean
Validate = pValidate
End Property
Public Property Let Validate(ByVal value As Boolean)
pValidate = value
End Property