summaryrefslogtreecommitdiff
path: root/source/text/sbasic
diff options
context:
space:
mode:
authorAlain Romedenne <alain.romedenne@libreoffice.org>2022-06-18 16:17:41 +0200
committerAlain Romedenne <alain.romedenne@libreoffice.org>2022-06-22 14:05:58 +0200
commit1e58e8bacdb26bce4eb86485c183f12f87cc3e31 (patch)
treea47e15d72d969a6b79a8ce10ff5ec5e4f1451798 /source/text/sbasic
parenta9daf1b47b52f675225f31843b67e186a140845b (diff)
Improve SF.exception PythonPrint() method content
APSO extension is optional despite existing explanation Change-Id: Ib7615996a04dd770d2ec96e6f6066c272074248b Reviewed-on: https://gerrit.libreoffice.org/c/help/+/136051 Tested-by: Jenkins Reviewed-by: Rafael Lima <rafael.palma.lima@gmail.com> Reviewed-by: Alain Romedenne <alain.romedenne@libreoffice.org>
Diffstat (limited to 'source/text/sbasic')
-rw-r--r--source/text/sbasic/shared/03/sf_exception.xhp7
1 files changed, 4 insertions, 3 deletions
diff --git a/source/text/sbasic/shared/03/sf_exception.xhp b/source/text/sbasic/shared/03/sf_exception.xhp
index 416c43457a..c85fa4068c 100644
--- a/source/text/sbasic/shared/03/sf_exception.xhp
+++ b/source/text/sbasic/shared/03/sf_exception.xhp
@@ -319,21 +319,21 @@
<bookmark_value>Exception service;PythonPrint</bookmark_value>
</bookmark>
<h2 id="hd_id5515879128204789" localize="false">PythonPrint</h2>
- <paragraph role="paragraph" id="par_id111621624672183">Displays the list of arguments in a readable form in the Python shell (APSO) console. Arguments are separated by a TAB character (simulated by spaces).</paragraph>
+ <paragraph role="paragraph" id="par_id111621624672183">Displays the list of arguments in a readable form in the platform console. Arguments are separated by a TAB character (simulated by spaces).</paragraph>
<paragraph role="paragraph" id="par_id841621426229467">The same string is added to the ScriptForge debug console.</paragraph>
+ <paragraph role="paragraph" id="par_id551655563148866">If <link href="https://extensions.libreoffice.org/en/extensions/show/apso-alternative-script-organizer-for-python" name="APSO Python shell">Python shell (APSO)</link> is active, <literal>PythonPrint</literal> content is written to APSO console in place of the platform console.</paragraph>
<embed href="text/sbasic/shared/00000003.xhp#Basic_Only"/>
<embed href="text/sbasic/shared/00000003.xhp#functsyntax"/>
<bascode>
<paragraph role="bascode" localize="false" id="bas_id81630591881423">exc.PythonPrint(arg0: any, [arg1: any, ...])</paragraph>
</bascode>
- <embed href="text/sbasic/shared/00000003.xhp#Requires_APSO"/>
<embed href="text/sbasic/shared/00000003.xhp#functparameters"/>
<paragraph role="paragraph" id="par_id391126449167833"><emph>arg0[, arg1, ...]</emph>: Any number of arguments of any type. The maximum length of each individual argument is 1024 characters.</paragraph>
<embed href="text/sbasic/shared/00000003.xhp#functexample"/>
<bascode>
<paragraph role="bascode" localize="false" id="pyc_id451621479450230">exc.PythonPrint(a, Array(1, 2, 3), , &quot;line1&quot; &amp; Chr(10) &amp; &quot;Line2&quot;, DateSerial(2020, 04, 09))</paragraph>
</bascode>
- <note id="par_id261123015276160">In python use simply the builtin print() statement.</note>
+ <note id="par_id261123015276160">In Python use a <literal>print</literal> statement to print to the APSO console or use the <literal>DebugPrint</literal> method to print to ScriptForge's console.</note>
</section>
<section id="PythonShell">
@@ -389,6 +389,7 @@
<embed href="text/sbasic/shared/00000003.xhp#functparameters"/>
<section id="Raise_Parameters">
<paragraph role="paragraph" id="par_id851587219824597"><emph>Number</emph>: The error code, as a number or as a string. Default value is that of <literal>Err</literal> Basic builtin function.</paragraph>
+ <embed href="text/sbasic/shared/ErrVBA.xhp#RestrictedErrorCodes"/>
<paragraph role="paragraph" id="par_id461587220986452" xml-lang="en-US"><emph>Source</emph>: The location of the error, as a number or as a string. Default value is that of <literal>Erl</literal> Basic builtin function.</paragraph>
<paragraph role="paragraph" id="par_id721587221018162" xml-lang="en-US"><emph>Description</emph>: The message to display to the user and to report in the console. Default value is that of <literal>Error$</literal> Basic builtin function.</paragraph>
</section>