1
1
Fork 0
mirror of https://github.com/QB64-Phoenix-Edition/QB64pe.git synced 2024-07-26 07:25:53 +00:00
QB64-PE/internal/help/_ERRORLINE.txt
SMcNeill 6e01fc8dce Altered string compare routines (<,<=,>,>=) so they don't give false results with CHR$(0).
Added new _STRCMP and _STRICMP commands for quick string comparisons.
Cleaned up QB64 to finish removing the QUI (quick user insert) code and folders.
Altered UCASE and LCASE routines to be faster in some situations for us.
2014-09-22 08:19:03 -04:00

36 lines
839 B
Plaintext

The '''_ERRORLINE''' function returns the source code line number that caused the most recent runtime error.
{{PageSyntax}}
:{{Parameter|e%}} = {{KW|_ERRORLINE}}
{{PageDescription}}
* Does not require that the program use line numbers as it counts the actual lines of code.
* The code line can be found using the QB64 IDE or any other text editor such as Notepad.
* Used in '''QB64''' program error troubleshooting ONLY.
''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]]
* [[ERR]], [[ERL]]
* [[ERROR]]
* [[ERROR Codes]]
{{PageNavigation}}