mirror of
https://github.com/QB64-Phoenix-Edition/QB64pe.git
synced 2024-07-26 09:45:54 +00:00
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.
42 lines
824 B
Plaintext
42 lines
824 B
Plaintext
The {{KW|ERL}} function returns the closest previous line number before the last error.
|
|
|
|
|
|
{{PageSyntax}}
|
|
:''result&'' = {{KW|ERL}}
|
|
|
|
|
|
{{PageDescription}}
|
|
* Used in an error handler to report the last line number used before the error.
|
|
* If the program does not use line numbers, then ERL returns 0.
|
|
* Use [[_ERRORLINE]] to return the actual code line position of an error in a QB64 program.
|
|
|
|
|
|
''Example:'' Using a fake error code to return the line number position in a program.
|
|
{{CodeStart}}
|
|
{{Cl|ON ERROR}} {{Cl|GOTO}} errorfix
|
|
1
|
|
{{Cl|ERROR}} 250
|
|
{{Cl|ERROR}} 250
|
|
|
|
5 {{Cl|ERROR}} 250
|
|
|
|
{{Cl|END}}
|
|
errorfix:
|
|
{{Cl|PRINT}} {{Cl|ERL}}
|
|
{{Cl|RESUME}} {{Cl|NEXT}} '' ''
|
|
{{CodeEnd}}
|
|
{{OutputStart}}1
|
|
1
|
|
5
|
|
{{OutputEnd}}
|
|
|
|
|
|
{{PageSeeAlso}}
|
|
* [[ERR]]
|
|
* [[ERROR]]
|
|
* [[ON ERROR]]
|
|
* [[_ERRORLINE]]
|
|
* [[ERROR Codes]]
|
|
|
|
|
|
{{PageNavigation}} |