swansonplace
asked on
If you assign a value but it is invalid how to send back a flag
In the below code, I would only like to assign values that are greater than 0.
How do I send back a flag to say that is was not assigned to the property.
If I did this would it be a standard practice.
Public Property Let ExchangeRate(value As Double)
If mExchangeRate <> value Then
mExchangeRate = value
mIsDirty = True
End If
End Property
How do I send back a flag to say that is was not assigned to the property.
If I did this would it be a standard practice.
Public Property Let ExchangeRate(value As Double)
If mExchangeRate <> value Then
mExchangeRate = value
mIsDirty = True
End If
End Property
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
You could use a messagebox to notify the user