GetErrorModuleName()

Syntax

Filename$ = GetErrorModuleName()
Description
Get the module filename where the error occurred (included file). Uses the result of the GetErrorLineNR() command to determine on which line the error occurred.

This command is only available if the switch 'Enable OnError lines support' is checked in the compiler option window (Command line switch: /LINENUMBERING). If this switch isn't activated, this function will return always the string "OnError line support disabled" instead of the filename.

Supported OS

Windows

<- GetErrorLineNR() - OnError Index - GetErrorNumber() ->