diff options
Diffstat (limited to 'source/text/sbasic/shared/03120102.xhp')
-rw-r--r-- | source/text/sbasic/shared/03120102.xhp | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/source/text/sbasic/shared/03120102.xhp b/source/text/sbasic/shared/03120102.xhp index a9d73261ef..5f3a8f3592 100644 --- a/source/text/sbasic/shared/03120102.xhp +++ b/source/text/sbasic/shared/03120102.xhp @@ -30,19 +30,18 @@ <bookmark xml-lang="en-US" branch="index" id="bm_id3149205"> <bookmark_value>Chr function</bookmark_value> </bookmark> - <paragraph id="hd_id3149205" role="heading" level="1" xml-lang="en-US"><link href="text/sbasic/shared/03120102.xhp" name="Chr Function">Chr Function</link></paragraph> - <paragraph id="par_id3153311" role="paragraph" xml-lang="en-US">Returns the character that corresponds to the specified character code.</paragraph> + <h1 id="hd_id3149205"><variable id="Chr_h1"><link href="text/sbasic/shared/03120102.xhp" name="Chr Function">Chr Function</link></variable></h1> + <paragraph id="par_id3153311" role="paragraph">Returns the character that corresponds to the specified character code.</paragraph> </section> <embed href="text/sbasic/shared/00000003.xhp#functsyntax"/> - - <paragraph id="par_id3150669" role="code" xml-lang="en-US">Chr(Expression As Integer)</paragraph> + <paragraph id="par_id3150669" role="code" xml-lang="en-US">Chr[$](expression As Integer) As String</paragraph> <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> 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> + <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> @@ -56,13 +55,15 @@ <bascode> <paragraph id="par_idm1341138080" role="bascode" localize="false" xml-lang="en-US">Sub ExampleChr</paragraph> <paragraph id="par_id3154909" role="bascode" xml-lang="en-US"> ' This example inserts quotation marks (ASCII value 34) in a string.</paragraph> - <paragraph id="par_id3151380" role="bascode" xml-lang="en-US"> MsgBox "A "+ Chr$(34)+"short" + Chr$(34)+" trip."</paragraph> + <paragraph id="par_id3151380" role="bascode" xml-lang="en-US"> MsgBox "A "+ Chr$(34)+"short" + Chr(34)+" trip."</paragraph> <paragraph id="par_id3145174" role="bascode" xml-lang="en-US"> ' The printout appears in the dialog as: A "short" trip.</paragraph> <paragraph id="par_idm1341131568" role="bascode" localize="false" xml-lang="en-US">End Sub</paragraph> </bascode> <section id="relatedtopics"> - <paragraph id="par_idN10668" role="paragraph" xml-lang="en-US"><link href="text/sbasic/shared/03120101.xhp">ASC</link></paragraph> + <embed href="text/sbasic/shared/03120101.xhp#Asc_h1"/> + <embed href="text/sbasic/shared/03120111.xhp#AscW_h1"/> + <embed href="text/sbasic/shared/03120112.xhp#ChrW_h1"/> </section> </body> |