1
1
Fork 0
mirror of https://github.com/QB64-Phoenix-Edition/QB64pe.git synced 2024-07-03 03:01:21 +00:00
QB64-PE/internal/help/_ERRORLINE.txt

39 lines
963 B
Plaintext
Raw Normal View History

2016-03-18 11:36:04 +00:00
{{DISPLAYTITLE:_ERRORLINE}}
2017-10-10 14:55:21 +00:00
The [[_ERRORLINE]] function returns the source code line number that caused the most recent runtime error.
{{PageSyntax}}
2016-03-18 11:36:04 +00:00
:{{Parameter|e%}} = [[_ERRORLINE]]
{{PageDescription}}
2017-10-10 14:55:21 +00:00
* Used in program error troubleshooting.
* Does not require that the program use line numbers as it counts the actual lines of code.
2021-01-04 18:45:32 +00:00
* The code line can be found using the QB64 IDE (Use the shortcut '''Ctrl+G''' to go to a specific line) or any other text editor such as Notepad.
2017-10-10 14:55:21 +00:00
{{PageExamples}}
''Example:'' Displaying the current program line using a simulated [[ERROR]] code.
{{CodeStart}} '' ''
{{Cl|ON ERROR}} {{Cl|GOTO}} DebugLine 'can't use {{Cl|GOSUB}}
{{Cl|ERROR}} 250 'simulated error code
{{Cl|END}}
DebugLine:
{{Cl|PRINT}} {{Cl|_ERRORLINE}}
{{Cl|RESUME}} {{Cl|NEXT}} '' ''
{{CodeEnd}}
{{PageSeeAlso}}
* [[ON ERROR]]
* [[_INCLERRORLINE]], [[_INCLERRORFILE$]]
* [[ERR]], [[ERL]]
* [[ERROR]]
* [[ERROR Codes]]
2019-04-15 01:15:33 +00:00
{{PageNavigation}}
<