Conor. You OUTLAW try and except? is that right?
Thats kinda "Interesting"
How do you check a string that contains a date, IS a date?
i.e.
try
StrToDate(mytString)
except
Showmessage('opps that not a date')
end;
I know this is not a GREAT example but you get what I mean.
Are you saying that you write a long or complicated function ot
procedure to parse the string and work out if its a date at all?
If this is the casse, surly the above is the more effienct.
I am making some assumptions here obviously.
Jeremy
-----Original Message-----
From: Conor Boyd <[EMAIL PROTECTED]>
To: Multiple recipients of list delphi <[EMAIL PROTECTED]>
Date: Mon, 10 Mar 2003 16:00:24 +1300
Subject: RE: [DUG]: Is this ropey practice?
> You shouldn't call the Destroy destructor directly for a start.
> You should generally call Free on objects, or more specifically,
> Release for
> forms.
>
> I'll do whatever I can to avoid empty exception handlers. In fact,
> I've
> gone as far as to produce coding standards for companies I've worked at
> explicitly outlawing them. ;-) In a similar vein, I'll never, ever
> ignore
> compiler warnings or hints.
>
> If I do leave an empty exception handler, I'll document the fact in the
> exception handler, and the reasons why.
>
> Do you do any logging in your app? If so, I'd write something to a log
> at
> the very least. Is there nothing you can do to resolve the possible
> errors
> you get?
>
> HTH,
>
> Conor
>
> -----Original Message-----
> From: Alistair George [mailto:[EMAIL PROTECTED]
>
> Hi this is what i have been doing in the past to circumvent some
> possible
> errors
> when they are no big deal errors:
> try dmon.Form1.Destroy; except; end;
>
> Any comments?
> -----------------------------------------------------------------------
> ----
> New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
> Website: http://www.delphi.org.nz
> To UnSub, send email to: [EMAIL PROTECTED]
> with body of "unsubscribe delphi"
> Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED]
with body of "unsubscribe delphi"
Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/