1
1
Fork 0
mirror of https://github.com/QB64-Phoenix-Edition/QB64pe.git synced 2024-07-05 21:40:25 +00:00
QB64-PE/internal/help/_INCLERRORFILE$__1111111111111$.txt
Roland Heyder 6912727753 Update help files
Help file snapshot as of 07/31/2022.
2022-07-31 23:57:56 +02:00

57 lines
1.4 KiB
Plaintext

{{QBDLDATE:07-31-2022}}
{{QBDLTIME:23:38:08}}
{{DISPLAYTITLE:_INCLERRORFILE$}}
The [[_INCLERRORFILE$]] function returns the name of the original source code [[$INCLUDE]] module that caused the most recent error.
{{PageSyntax}}
: {{Parameter|errfile$}} = [[_INCLERRORFILE$]]
{{PageDescription}}
If the last error occurred in the main module, [[_INCLERRORFILE$]] returns an empty string.
==Availability==
* '''Version 1.1 and up'''.
{{PageExamples}}
''Example:''
{{CodeStart}}
{{Cl|ON ERROR}} {{Cl|GOTO}} DebugLine
{{Cl|ERROR}} 250 'simulated error code - an error in the main module leaves _INCLERRORLINE empty (= 0)
'{{Cl|$INCLUDE}}:'haserror.bi'
{{Cl|END}}
DebugLine:
{{Cl|PRINT}} "An error occurred. Please contact support with the following details:
{{Cl|PRINT}} "ERROR "; {{Cl|ERR}}; " ON LINE: "; {{Cl|_ERRORLINE}}
{{Cl|IF...THEN|IF}} {{Cl|_INCLERRORLINE}} {{Cl|THEN}}
{{Cl|PRINT}} " IN MODULE "; {{Cl|_INCLERRORFILE$}}; " (line"; {{Cl|_INCLERRORLINE}}; ")"
{{Cl|END IF}}
{{Cl|RESUME}} {{Cl|NEXT}}
{{CodeEnd}}
{{OutputStart}}An error occurred. Please contact support with the following details:
ERROR 250 ON LINE: 6
An error occurred. Please contact support with the following details:
ERROR 250 ON LINE: 9
IN MODULE haserror.bi ( line 1 )
{{OutputEnd}}
{{PageSeeAlso}}
* [[_INCLERRORLINE]]
* [[ON ERROR]], [[ERR]]
* [[ERROR]]
* [[ERROR Codes]]
* [[$INCLUDE]]
{{PageNavigation}}