From 1e58e8bacdb26bce4eb86485c183f12f87cc3e31 Mon Sep 17 00:00:00 2001 From: Alain Romedenne Date: Sat, 18 Jun 2022 16:17:41 +0200 Subject: 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 Reviewed-by: Alain Romedenne --- source/text/sbasic/shared/03/sf_exception.xhp | 7 ++++--- 1 file 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 @@ Exception service;PythonPrint

PythonPrint

- 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). + Displays the list of arguments in a readable form in the platform console. Arguments are separated by a TAB character (simulated by spaces). The same string is added to the ScriptForge debug console. + If Python shell (APSO) is active, PythonPrint content is written to APSO console in place of the platform console. exc.PythonPrint(arg0: any, [arg1: any, ...]) - arg0[, arg1, ...]: Any number of arguments of any type. The maximum length of each individual argument is 1024 characters. exc.PythonPrint(a, Array(1, 2, 3), , "line1" & Chr(10) & "Line2", DateSerial(2020, 04, 09)) - In python use simply the builtin print() statement. + In Python use a print statement to print to the APSO console or use the DebugPrint method to print to ScriptForge's console.
@@ -389,6 +389,7 @@
Number: The error code, as a number or as a string. Default value is that of Err Basic builtin function. + Source: The location of the error, as a number or as a string. Default value is that of Erl Basic builtin function. Description: The message to display to the user and to report in the console. Default value is that of Error$ Basic builtin function.
-- cgit