From 61173c1b58efa79c0ba6b08348d2796a249d0186 Mon Sep 17 00:00:00 2001 From: Norbert Thiebaud Date: Sat, 1 Sep 2012 09:51:27 -0500 Subject: move help structure one directory up Change-Id: Ie970e39fbb6795a92d9fdd13510409d7dcd071bc --- source/text/sbasic/shared/03050100.xhp | 71 ++++++++++++++++++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100644 source/text/sbasic/shared/03050100.xhp (limited to 'source/text/sbasic/shared/03050100.xhp') diff --git a/source/text/sbasic/shared/03050100.xhp b/source/text/sbasic/shared/03050100.xhp new file mode 100644 index 0000000000..657da7ef59 --- /dev/null +++ b/source/text/sbasic/shared/03050100.xhp @@ -0,0 +1,71 @@ + + + + + + + + +Erl Function [Runtime] +/text/sbasic/shared/03050100.xhp + + +Sun Microsystems, Inc. +converted from old format - fpe +dedr: fixed #i30425# + + + +
+Erl function + +Erl Function [Runtime] +Returns the line number where an error occurred during program execution. +
+Syntax: +Erl +Return value: +Integer +Parameters: +The Erl function only returns a line number, and not a line label. +Example: +sub ExampleError +on error goto ErrorHandler REM Set up error handler +Dim iVar as Integer +Dim sVar As String +REM Error caused by non-existent file +iVar = Freefile +Open "\file9879.txt" for Input as #iVar +Line Input #iVar, sVar +Close #iVar +exit sub +ErrorHandler: +MsgBox "Error " & err & ": " & error$ + chr(13) + "In line : " + Erl + chr(13) + Now , 16 ,"An error occurred" +end sub + +
-- cgit