[Libreoffice-commits] help.git: source/text

Stephan Bergmann (via logerrit) logerrit at kemper.freedesktop.org
Thu Feb 20 15:01:02 UTC 2020


 source/text/sbasic/shared/03120102.xhp |    2 +-
 source/text/sbasic/shared/03120112.xhp |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

New commits:
commit bf2dff69f84ad28836924d3bf311910248aca1f9
Author:     Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Thu Feb 20 13:51:22 2020 +0100
Commit:     Stephan Bergmann <sbergman at redhat.com>
CommitDate: Thu Feb 20 16:00:42 2020 +0100

    tdf#130426 Update documentation for Basic Chr and ChrW functions
    
    ...for <https://gerrit.libreoffice.org/c/core/+/89090> "tdf#130426 Support Basic
    Chr(&H8000), ..., Chr(&HFFFF) again"
    
    Change-Id: I425a55ba1b055f94d993bb99c5412cc0414dc48d
    Reviewed-on: https://gerrit.libreoffice.org/c/help/+/89100
    Tested-by: Jenkins
    Reviewed-by: Stephan Bergmann <sbergman at redhat.com>

diff --git a/source/text/sbasic/shared/03120102.xhp b/source/text/sbasic/shared/03120102.xhp
index b516500fe..a18c3beb1 100644
--- a/source/text/sbasic/shared/03120102.xhp
+++ b/source/text/sbasic/shared/03120102.xhp
@@ -42,7 +42,7 @@
     <paragraph id="par_id3153824" role="paragraph" xml-lang="en-US">String</paragraph>
 
     <embed href="text/sbasic/shared/00000003.xhp#functparameters"/>
-    <paragraph id="par_id3149295" role="paragraph" xml-lang="en-US"> <emph>Expression:</emph> a numeric expression that represents a valid 8-bit ASCII value (0-255) or a 16-bit Unicode value.</paragraph>
+    <paragraph id="par_id3149295" role="paragraph" xml-lang="en-US"> <emph>Expression:</emph> a numeric expression that represents a valid 8-bit ASCII value (0-255) or a 16-bit Unicode value. (To support expressions with a nominally negative argument like <emph>Chr(&H8000)</emph> in a backwards-compatible way, values in the range −32768 to −1 are internally mapped to the range 32768 to 65535.)</paragraph>
 
     <warning id="par_id991552913928635">When VBA compatibility mode is enabled (<link href="text/sbasic/shared/03103350.xhp" name="vbasupport"><literal>OPTION VBASUPPORT 1</literal></link>), <emph>Expression</emph> is a numeric expression that represents a valid 8-bit ASCII value (0-255) only.</warning>
 
diff --git a/source/text/sbasic/shared/03120112.xhp b/source/text/sbasic/shared/03120112.xhp
index cb3394dab..39f9cebee 100644
--- a/source/text/sbasic/shared/03120112.xhp
+++ b/source/text/sbasic/shared/03120112.xhp
@@ -45,7 +45,7 @@
 <embed href="text/sbasic/shared/00000003.xhp#functvalue"/>
 <paragraph id="par_id3153824" role="paragraph" xml-lang="en-US">String</paragraph>
 <embed href="text/sbasic/shared/00000003.xhp#functparameters"/>
-<paragraph id="par_id3149295" role="paragraph" xml-lang="en-US"> <emph>Expression:</emph> Numeric variables that represent a valid 16 bit Unicode value (0-65535). An empty value returns error code 5. A value out of the range [0,65535] returns error code 6.</paragraph>
+<paragraph id="par_id3149295" role="paragraph" xml-lang="en-US"> <emph>Expression:</emph> Numeric variables that represent a valid 16 bit Unicode value (0-65535). (To support expressions with a nominally negative argument like <emph>ChrW(&H8000)</emph> in a backwards-compatible way, values in the range −32768 to −1 are internally mapped to the range 32768 to 65535.) An empty value returns error code 5. A value out of the range [0,65535] returns error code 6.</paragraph>
 <embed href="text/sbasic/shared/00000003.xhp#errorcode"/>
 <embed href="text/sbasic/shared/00000003.xhp#err5"/>
 <embed href="text/sbasic/shared/00000003.xhp#err6"/>


More information about the Libreoffice-commits mailing list