Is there a way of invoking the OnValueValidate functionality of a TDbAdvEdit without actually changing the value?
That is, I have logic in the OnValueValidate event that displays an error as the user types in a value.
But the value of a given edit might become invalid if some other control on the form changes.
It would be handy if I could link a set of controls together to invoke each other's validation...
For example, I have a a currency combobox with "CAD", "USD", "BOTH", and two TDBAdvEdits:
dbEdtCAD and dbEdtUSD.
If currency is CAD and dbEdtCAD=0 and dbEdtUSD<>0 then dbEdtUSD is invalid.
So, changing the drop down box value from USD to CAD should cause dbEdtUSD to call it's OnValueValidate and see that it is now invalid.
I can manage all this with a common OnChange or OnExit method, but it would be nice to take advantage of the OnValueValidate that already exists...