ERFN


Error reporting function

Syntax:
Usage:
result = Erfn ( )

Return Value:
Returns a pointer to the string identifying the function where the error occurred.

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.

Examples:
'' test.bas
'' compile with fbc -exx -lang fblite test.bas

#lang "fblite"

Sub Generate_Error
  On Error Goto Handler
  Error 1000
  Exit Sub
Handler:
  Print "Error Function: "; *Erfn()
  Print "Error Module  : "; *Ermn()
  Resume Next
End Sub

Generate_Error

Output:
Error Function: GENERATE_ERROR
Error Module  : test.bas



Dialect Differences:
Differences from QB:
See also:
Back to Error Handling Functions
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki



sf.net phatcode