Module methods how get the name

If anyway I can get the name for module methods and show on mgsbox on case on error.

like MsgBox "Error in " + module. methods.name

I think you need to have the “Include Functions Name” build setting turned on, as well as some way of parsing the error stack (there was an old module called StackCleaner)… You can probably do the same thing using either the .Stack or .CallStack of the RuntimeException class…

XojoScript ?

Please use CurrentMethodName constant for this.

Thanks, Christian
that works as I expected