summaryrefslogtreecommitdiff
path: root/source/text/sbasic/shared/03120112.xhp
diff options
context:
space:
mode:
authorAlain Romedenne <LibreOfficiant@gerrit.libreoffice.org>2022-01-20 09:39:06 +0100
committerRafael Lima <rafael.palma.lima@gmail.com>2022-01-26 21:32:01 +0100
commit2f76d8e9280cbe1e726cfcf2d4a798c8cf418241 (patch)
tree6ecb316ccc0abb91593e264da514565ed89cde92 /source/text/sbasic/shared/03120112.xhp
parent1d6b5e9dd1371dd72703d271533bc08d2cef11ae (diff)
tdf#145693 tdf#141474 Chr ChrW method signatures
Change-Id: If285713e1e76a661205f291f551cc988b194cd35 Reviewed-on: https://gerrit.libreoffice.org/c/help/+/128542 Tested-by: Jenkins Reviewed-by: Rafael Lima <rafael.palma.lima@gmail.com>
Diffstat (limited to 'source/text/sbasic/shared/03120112.xhp')
-rw-r--r--source/text/sbasic/shared/03120112.xhp17
1 files changed, 8 insertions, 9 deletions
diff --git a/source/text/sbasic/shared/03120112.xhp b/source/text/sbasic/shared/03120112.xhp
index 05d2b8297e..e1eba04293 100644
--- a/source/text/sbasic/shared/03120112.xhp
+++ b/source/text/sbasic/shared/03120112.xhp
@@ -27,35 +27,34 @@
<body>
-
<section id="chrw">
<bookmark xml-lang="en-US" branch="index" id="bm_id3149205">
<bookmark_value>ChrW function</bookmark_value>
</bookmark>
-
<h1 id="hd_id3149205"><variable id="ChrW_h1"><link href="text/sbasic/shared/03120112.xhp" name="ChrW Function">ChrW Function [VBA]</link></variable></h1>
<paragraph id="par_id3153311" role="paragraph">Returns the Unicode character that corresponds to the specified character code.</paragraph>
</section>
<embed href="text/sbasic/shared/00000003.xhp#vbasupport"/>
<embed href="text/sbasic/shared/00000003.xhp#functsyntax"/>
<bascode>
-<paragraph id="par_id3150669" role="bascode" xml-lang="en-US">ChrW(Expression As Integer) As String</paragraph>
+<paragraph id="par_id3150669" role="bascode" localize="false">ChrW(charcode As Integer) As String</paragraph>
</bascode>
<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). (To support expressions with a nominally negative argument like <emph>ChrW(&amp;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>
+<paragraph id="par_id3149295" role="paragraph" xml-lang="en-US"> <emph>charcode</emph>: Numeric expression that represent a valid 16 bit Unicode value (0-65535). (To support expressions with a nominally negative argument like <emph>ChrW(&amp;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 to 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"/>
<embed href="text/sbasic/shared/00000003.xhp#functexample"/>
<bascode>
-<paragraph id="par_idm1341138080" role="bascode" localize="false" xml-lang="en-US">Sub ExampleChrW</paragraph>
-<paragraph id="par_id3154909" role="bascode" xml-lang="en-US"> ' This example inserts the Greek letters alpha and omega in a string.</paragraph>
-<paragraph id="par_id3151380" role="bascode" xml-lang="en-US"> MsgBox "From "+ ChrW(913)+" to " + ChrW(937)</paragraph>
-<paragraph id="par_id3145174" role="bascode" xml-lang="en-US"> ' The printout appears in the dialog as: From Α to Ω</paragraph>
-<paragraph id="par_idm1341131568" role="bascode" localize="false" xml-lang="en-US">End Sub</paragraph>
+<paragraph id="par_idm1341138080" role="bascode" localize="false">Sub ExampleChrW</paragraph>
+<paragraph id="par_id3154909" role="bascode" xml-lang="en-US"> ' This example inserts the Greek letters alpha and omega in a string.</paragraph>
+<paragraph id="par_id3151380" role="bascode" xml-lang="en-US"> MsgBox "From " + ChrW(913) + " to " + ChrW(937)</paragraph>
+<paragraph id="par_id3145174" role="bascode" xml-lang="en-US"> ' The printout appears in the dialog as: From Α to Ω</paragraph>
+<paragraph role="bascode" id="bas_id181642669411658" xml-lang="en-US"> MsgBox ChrW(charcode := 116) ' "t" lowercase T letter</paragraph>
+<paragraph id="par_idm1341131568" role="bascode" localize="false">End Sub</paragraph>
</bascode>
<section id="relatedtopics">