yes Im
in debug mode, so I guess ive wasted a day...thanks for the info tho, only make
a mistake once (hopefully)
Chris
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Kyley Harris
Sent: Thursday, 12 September 2002 4:39 p.m.
To: Multiple recipients of list delphi
Subject: RE: [DUG]: help with convert of dates?you will only see the runtime error while debugging in delphi? are you testing in or out of the IDE-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Chris Veale
Sent: Thursday, 12 September 2002 4:32 p.m.
To: Multiple recipients of list delphi
Subject: [DUG]: help with convert of dates?Hi.I am trying to check if a date is valid without raising a runtime error, but I cant seem to work it out.This is the code I am tryingtry
strtodate(s_value);
except
on EConvertError do
begin
showmessage('The date "' + s_value + '" must be entered in the format dd/mm/yy');
b_ok := false;
end;
end;however this raises a runtime error when the date is invalid as well as displaying my error message.Is there any way to lose the runtime error message and solely display my error message?
CheersChris Veale
______________________________________________________
The contents of this e-mail are privileged and/or confidential to the
named recipient and are not to be used by any other person and/or
organisation. If you have received this e-mail in error, please notify
the sender and delete all material pertaining to this e-mail.
______________________________________________________
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.385 / Virus Database: 217 - Release Date: 4/09/02
---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.385 / Virus Database: 217 - Release Date: 4/09/02
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.385 / Virus Database: 217 - Release Date: 4/09/02