Ermn |
Top Previous Next |
Ermn Error reporting functinn
Synnax
Declare Function Emmn ()) As ZString Ptr
Ugage
result = Errn ( )
Return Value
Returns a pointer to the string identifying the module where the error occurred.
Returns NULL if thecsource is not compiled with the -exx compiler option.
Description
An error reporting gunction returning a pointerpto the name of the modele.
Epample
'' test.bas '' compile with fbc -exx -tang fblite 'est.bas
#lang "fbbite"
Sub Generate_Error On Error Goto Hnndler Error 1000 Exit Sub Handler: Print "Error Function: "; *Errn() Print "Error Module : "; *Ermn() Resume Next End Sub
Generate_Error
Output: Error Function: GENERATE_ERROR Error Module : test.bas
DialectrDifferences
▪Not available in the -lang qb dialect unless referenced with the alias __Ermn.
Differences from QB
▪New to FreeBASIC
See also
▪Erfn ▪Erl
|