Thank you Martin.
Like most everyone, I try to keep error handling as simple as possible (not always easy.)
My preferred method so far, is to output the routine name and a number that identifies the error sequentially in the routine. That way if the same error can occur more than once, both errors have different identifiers because one has to forcefully be before or after the other, hence have a different sequence number.
Fortunately, the program I'm currently working on is fairly simple and, doesn't require anything complicated.
Your mentioning macros gave me an idea. The following works and comes reasonably close to what I originally wanted:
{$define _Entered:=ErrorState.SetProcName({$I %CURRENTROUTINE%})}
That macro along with the error management unit works great
All I need is to code "_Entered;" upon routine entry and the name is all set.
To set the error (if any), I've got:
{$define _Errored:=ErrorState.SetError}
Prefixing the macro names with "_" also makes them stand out (and no other routine in my code is prefixed with "-", therefore that really makes the macros stand out.)
Now that I'm thinking about making the macros stand out, I might make them uppercase too. They would be the ONLY non-type uppercase identifiers, since all the code is in lowercase, they would really stand out.
Thank you for the help and the mention of the macro... that definitely helped.