View Full Version : Handling an exception EDBEditError at runtime
04-26-2001, 08:33 PM
How can I address an exception (EDBEditError) in my code, that occurs at runtime whenever I attempt to delete a value in a field that has an edit mask. This would be the only time I would need to handle the exception referred to herein as all other invalid entries would in fact be handled by the exception.
04-26-2001, 11:22 PM
You can try to write an OnValidate handler of the database field.
If you use a TDataset descendant TTable for instance), you can double click it and select the field, and then see the object inspector to implement the OnValidate handler of the field.
See the Delphi help on TField.OnValidate for more info. This help contains specific info on EditMasks.
Hope this helps,
vBulletin® v3.8.7, Copyright ©2000-2013, vBulletin Solutions, Inc.