Paradox Community

Items in pnews.paradox-programming

Subject:Re: error system
Date:Mon, 25 Oct 2021 09:35:44 -0500
From:Mark Bannister <>
You have to hard code that information.  I do this:
      ErrorLogShow ( ErrorLoggeraddmsg ("MyMethodName" ) )

ErrorLoggeraddmsg is a custom method that parses the error stack. 
ErrorLogShow is custom method to display errors.  "MyMethodName" must be 
hard coded or a constant.  Using a variable at this point will clear the 
error stack.

Mark Bannister

On 10/22/2021 6:22 PM, Peter wrote:
> Is there a way to get the current method/proc that is executing?
> In my diagnostics table, I want to include a field for the method/proc 
> that is running when an error occurs. Right now all I can do is:
> eg, button:pushbutton
> method (pushbutton(var eventInfo Event)
> eventInfo.getTarget(uioTarget)
> dynErr["objectID"] =   ;//object executing code
> dynErr["methID"] = "pushbutton"      ;//method ID, I have to set manually
> endMethod
> I would like to have something to the effect of
> dynErr["methID"] = thismethod
> Thanks for any tips
> On 09/29/2021 07:46 p.m., Peter wrote:
>> I have several traps for errors, many times reporting the same kind of 
>> error but with slightly different custom notes appended to describe 
>> what caused the error or giving the user instructions.
>> This leads to me inserting the same basic error blocks over and over.
>> I know that the "error" method can be used for this but I don't know 
>> how. Any tips on setting up an error system? Thanks.
>> Peter

Copyright © 2004