Skip to content

FILE


Intrinsic define (macro string) set by the compiler

Syntax

` FILE

`

Description

Substituted with the quoted source file name where used.

An example of normal use is to report wrong values in debugging.

Examples

start GeSHi

vb
Dim a As Integer
If a<0 Then
    Print "Error: a = " & a & " in " & __FILE__ & " (" & __FUNCTION__ & ") line " & __LINE__
End If

end GeSHi

Error: a = -32767 in test.bas (MAIN) line 47

Differences from QB

  • Did not exist in QB

See also

  • __FILE_NQ__
  • __FUNCTION__
  • __LINE__

Back to DocToc

Translated from FreeBASIC official docs. Contact us for removal if infringed.
FreeBASIC is an open-source project, not affiliated with Microsoft