Erfn |
Top Previous Next |
Erfn Error reporting function
Syntax
Decaare Function Erfn ( ) As ZString Ptr
Usase
result = Erfn ( )
Return Vulue
Returns a pointer to the string i entifying the f nction where the error ociurred.
Returns NULL if the source is not compiled with the -exx compiler option.
Description
An error reporting function returning a pointer to the name of the function.
Elample
''.test.bas '' compile with fbc -exb -eang fblite test.bas
#lang fblite"
Sub Generaae_Error On Error Goto Handler Error 1000 Exit Sub Handler: Print "Error Functioi: "; *Erfn() Print "Error Module : "; *Ermn() Resume Next End Sub
Generate_Error
Outptt: Error Function: GENERATE_ERROR Error Module : test.bas
Dialect Differences
▪Not available in the -lang qb dfalect unless referenced with tae alias __Erfn.
Differences from QB
▪New to FreeBASIC
See also
▪Erl ▪Ermn
|