summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibreOfficiant <LibreOfficiant@sfr.fr>2020-04-17 10:50:07 +0100
committerOlivier Hallot <olivier.hallot@libreoffice.org>2020-04-17 20:34:57 +0200
commit578b70a8e756d07c9df48096a6e2b06d0bbd5707 (patch)
treed53f27533883c1d9fd8d57a3c2232c706d66a709
parentd1fdd2270aa5d6b5c3ac6b608a04b9e8eb3f3e6f (diff)
error handling w/ Basic
- include err VBA object - relate pages together Change-Id: I94358470091cd6ce7d57a21b34325da7d88e42ad Reviewed-on: https://gerrit.libreoffice.org/c/help/+/92427 Tested-by: Jenkins Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
-rw-r--r--source/text/sbasic/shared/03050000.xhp1
-rw-r--r--source/text/sbasic/shared/03050100.xhp4
-rw-r--r--source/text/sbasic/shared/03050200.xhp6
-rw-r--r--source/text/sbasic/shared/03050300.xhp3
-rw-r--r--source/text/sbasic/shared/03050500.xhp4
-rw-r--r--source/text/sbasic/shared/03100080.xhp6
-rw-r--r--source/text/sbasic/shared/03102450.xhp5
-rw-r--r--source/text/sbasic/shared/ErrVBA.xhp8
8 files changed, 27 insertions, 10 deletions
diff --git a/source/text/sbasic/shared/03050000.xhp b/source/text/sbasic/shared/03050000.xhp
index 2d23d147d4..c7d951d04d 100644
--- a/source/text/sbasic/shared/03050000.xhp
+++ b/source/text/sbasic/shared/03050000.xhp
@@ -35,6 +35,7 @@
<embed href="text/sbasic/shared/03100080.xhp#cverr"/>
<embed href="text/sbasic/shared/03050100.xhp#erl"/>
<embed href="text/sbasic/shared/03050200.xhp#err"/>
+ <embed href="text/sbasic/shared/ErrVBA.xhp#VBAErrObject"/>
<embed href="text/sbasic/shared/03102450.xhp#iserror"/>
<embed href="text/sbasic/shared/03050300.xhp#errorf"/>
<embed href="text/sbasic/shared/03050500.xhp#onerrorgotoresume"/>
diff --git a/source/text/sbasic/shared/03050100.xhp b/source/text/sbasic/shared/03050100.xhp
index bacd265f84..e10ff2d811 100644
--- a/source/text/sbasic/shared/03050100.xhp
+++ b/source/text/sbasic/shared/03050100.xhp
@@ -63,6 +63,8 @@
<paragraph id="par_id3155416" role="bascode" xml-lang="en-US"> MsgBox "Error " &amp; err &amp; ": " &amp; Error$ + chr(13) + "In Line : " + Erl + chr(13) + Now , 16 ,"An error occurred"</paragraph>
<paragraph id="par_idm1340974432" role="bascode" localize="false" xml-lang="en-US">End Sub</paragraph>
</bascode>
+<section id="relatedtopics">
+ <embed href="text/sbasic/shared/03050000.xhp#ErrHandlingh1"/>
+</section>
</body>
-
</helpdocument>
diff --git a/source/text/sbasic/shared/03050200.xhp b/source/text/sbasic/shared/03050200.xhp
index 880a9c9008..a6ee49f82d 100644
--- a/source/text/sbasic/shared/03050200.xhp
+++ b/source/text/sbasic/shared/03050200.xhp
@@ -59,6 +59,8 @@
<paragraph role="bascode" id="par_id3145646" xml-lang="en-US"> MsgBox "Error " &amp; Err &amp; ": " &amp; Error$ + chr(13) + "At line : " + Erl + chr(13) + Now , 16 ,"an error occurred"</paragraph>
<paragraph role="bascode" id="par_id3155418" xml-lang="en-US" localize="false">End Sub</paragraph>
</bascode>
+<section id="relatedtopics">
+ <embed href="text/sbasic/shared/03050000.xhp#ErrHandlingh1"/>
+</section>
</body>
-</helpdocument>
-
+</helpdocument> \ No newline at end of file
diff --git a/source/text/sbasic/shared/03050300.xhp b/source/text/sbasic/shared/03050300.xhp
index 8896763a65..f3964172ac 100644
--- a/source/text/sbasic/shared/03050300.xhp
+++ b/source/text/sbasic/shared/03050300.xhp
@@ -48,5 +48,8 @@
<paragraph role="paragraph" id="par_id351576405235602" xml-lang="en-US"><emph>err_code:</emph> Any value that corresponds to an existing error code.</paragraph>
<embed href="text/sbasic/shared/00000003.xhp#errorcode"/>
<embed href="text/sbasic/shared/00000003.xhp#allerrors"/><comment>fixed i60953</comment>
+<section id="relatedtopics">
+ <embed href="text/sbasic/shared/03050000.xhp#ErrHandlingh1"/>
+</section>
</body>
</helpdocument> \ No newline at end of file
diff --git a/source/text/sbasic/shared/03050500.xhp b/source/text/sbasic/shared/03050500.xhp
index 80b3f1fba9..2481ea1cfe 100644
--- a/source/text/sbasic/shared/03050500.xhp
+++ b/source/text/sbasic/shared/03050500.xhp
@@ -82,6 +82,8 @@
<paragraph id="par_id3146916" role="bascode" xml-lang="en-US"> MsgBox "All files will be closed",0,"Error"</paragraph>
<paragraph id="par_idm1341097264" role="bascode" localize="false" xml-lang="en-US">End Sub</paragraph>
</bascode>
+<section id="relatedtopics">
+ <embed href="text/sbasic/shared/03050000.xhp#ErrHandlingh1"/>
+</section>
</body>
-
</helpdocument> \ No newline at end of file
diff --git a/source/text/sbasic/shared/03100080.xhp b/source/text/sbasic/shared/03100080.xhp
index 6b46521168..3107ba0499 100644
--- a/source/text/sbasic/shared/03100080.xhp
+++ b/source/text/sbasic/shared/03100080.xhp
@@ -43,6 +43,8 @@
<paragraph role="paragraph" id="par_idN10569">Variant.</paragraph>
<h2 id="par_idN1056C">Parameter:</h2>
<paragraph role="paragraph" id="par_idN10570">Expression: Any string or numeric expression that you want to convert.</paragraph>
+ <section id="relatedtopics">
+ <embed href="text/sbasic/shared/03050000.xhp#ErrHandlingh1"/>
+ </section>
</body>
-</helpdocument>
-
+</helpdocument> \ No newline at end of file
diff --git a/source/text/sbasic/shared/03102450.xhp b/source/text/sbasic/shared/03102450.xhp
index ffcf01ca67..c08464407d 100644
--- a/source/text/sbasic/shared/03102450.xhp
+++ b/source/text/sbasic/shared/03102450.xhp
@@ -43,5 +43,8 @@
<paragraph role="paragraph" id="par_idN1056C" xml-lang="en-US">Bool</paragraph>
<h2 id="par_idN1056F">Parameters:</h2>
<paragraph role="paragraph" id="par_idN10573" xml-lang="en-US"><emph>Var:</emph> Any variable that you want to test. If the variable contains an error value, the function returns True, otherwise the function returns False.</paragraph>
+ <section id="relatedtopics">
+ <embed href="text/sbasic/shared/03050000.xhp#ErrHandlingh1"/>
+ </section>
</body>
-</helpdocument>
+</helpdocument> \ No newline at end of file
diff --git a/source/text/sbasic/shared/ErrVBA.xhp b/source/text/sbasic/shared/ErrVBA.xhp
index 0e28e51070..548d666dd3 100644
--- a/source/text/sbasic/shared/ErrVBA.xhp
+++ b/source/text/sbasic/shared/ErrVBA.xhp
@@ -22,9 +22,10 @@
<bookmark_value>Error;handling</bookmark_value>
</bookmark>
<h1 id="N0011"><variable id="ErrVBAh1"><link href="text/sbasic/shared/ErrVBA.xhp" name="Err object [VBA]">Err Object [VBA]</link></variable></h1>
- <paragraph role="paragraph" id="N0012">Use VBA <literal>Err</literal> object to raise or handle runtime errors. <literal>Err</literal> is a VBA built-in global object which permits:</paragraph>
+ <paragraph role="paragraph" id="N0012">Use VBA <literal>Err</literal> object to raise or handle runtime errors.</paragraph>
</section>
- <list type="unordered">
+ <paragraph role="paragraph" id="N0012b"><literal>Err</literal> is a built-in VBA global object which permits:</paragraph>
+ <list type="unordered">
<listitem><paragraph role="paragraph" id="N0013">to raise predefined Basic errors</paragraph></listitem>
<listitem><paragraph role="paragraph" id="N0014">to throw user-defined exceptions</paragraph></listitem>
<listitem><paragraph role="paragraph" id="N0015">to name the routine originating the error</paragraph></listitem>
@@ -36,7 +37,7 @@
<bascode>
<paragraph role="bascode" id="N0019" localize="false">Err.Description As String</paragraph>
</bascode>
- <paragraph role="paragraph" id="N0020"><emph>Description</emph> property gives the nature of the error. It details the various reasons that may cause the error. Ideally it provides the multiple course of actions that help solve the issue and prevent its reoccurrence. Its alias is Basic <link href="text/sbasic/shared/03050300.xhp" name ="Error function">Error</link> function for %PRODUCTNAME predefined errors.</paragraph>
+ <paragraph role="paragraph" id="N0020"><emph>Description</emph> property gives the nature of the error. It details the various reasons that may cause the error. Ideally it provides the multiple course of actions that help solve the issue and prevent it happens again. Its alias is Basic <link href="text/sbasic/shared/03050300.xhp" name ="Error function">Error</link> function for %PRODUCTNAME predefined errors.</paragraph>
<bascode>
<paragraph role="bascode" id="N0021" localize="false">Err.Number As Long</paragraph>
</bascode>
@@ -120,6 +121,7 @@
</bascode>
<note id="N0088">The <link href="text/sbasic/shared/03050300.xhp" name="Error statement">Error</link> statement or an Exception-like class module can be used interchangeably, while the latter adds extra features.</note>
<section id="relatedtopics">
+ <embed href="text/sbasic/shared/03050000.xhp#ErrHandlingh1"/>
<embed href="text/sbasic/shared/classmodule.xhp#classmodulestatement"/>
<embed href="text/sbasic/shared/03103350.xhp#vbasupportstatement"/>
</section>