Hello Rob,
> However, the name of your TrigerError procedure doesn't seem right.
> You're not really _triggering_ the error in that procedure. The error
> has already occured, and you're telling the procedure what the error was.
I use TriggerXXX in my objects to Trigger an event. For example:
procedure TSomeObj.TriggerError(E: Exception);
begin
if Assigned(FOnError) then
FOnError(Self, E);
end;
eg:
procedure TSomeObj.Foo;
begin
try
DoSomethingWhereCanBeAnExceptionInIt;
except
on E: Exception do
TriggerError(E);
end;
end;
This codes very fast and reliable, also for maintance. Is this not a
good technique ?
---
Rgds, Wilfried
http://www.mestdagh.biz
__________________________________________________
Delphi-Talk mailing list -> [email protected]
http://www.elists.org/mailman/listinfo/delphi-talk