Solved

How to validate a TField when losing DBEdit focus.

Posted on 1998-12-03
1
611 Views
Last Modified: 2012-08-13
Where can I put the Try...Exception...end;
code to check if the user typed correctly when
leaving the TField? Delphi shows the exception
message automatically if the input value is
invalid, but I wanted to show my personalized
messages. I tried everything to validate before
Delphi, but Delphi always shows the exception
messages first. Please give me an example.
0
Comment
Question by:davichoi
1 Comment
 
LVL 8

Accepted Solution

by:
ZifNab earned 30 total points
ID: 1349170
davichoi

look at onposterror, onediterror, onupdateerror, ondeleteerror events of table component

Regards, Zif.
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
How to fill array with TArray.Create? 14 87
code issue 8 129
Show Listview image from database (String field) 5 123
update joined tables 2 45
A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

786 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question