LINE
- Source: https://www.freebasic.net/wiki/wikka.php?wakka=KeyPgDdline
- Last revised: 2016-02-10
Intrinsic define (macro value) set by the compiler
Syntax
` LINE
`
Description
Substituted with the current line number of the source file where used.
Its 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 Ifend GeSHi
Error: a = -32767 in test.bas (MAIN) line 47Differences from QB
- Did not exist in QB
See also
__FILE____FUNCTION__
Back to DocToc