source/text/sbasic/shared/03120103.xhp | 64 ++++++++++++++------------------- source/text/sbasic/shared/03120104.xhp | 61 +++++++++++++------------------ 2 files changed, 54 insertions(+), 71 deletions(-)
New commits: commit 6eb2b4b5600c3102a1f90e1b4eb6a7e934e9c07d Author: Rafael Lima <rafael.palma.l...@gmail.com> AuthorDate: Mon Jan 3 14:44:21 2022 +0100 Commit: Olivier Hallot <olivier.hal...@libreoffice.org> CommitDate: Mon Jan 3 17:33:43 2022 +0100 Related tdf#146117 Refactor XHP files This patch refactors XHP files that will be affected by an upcoming bug fix. No changes are made to the actual strings of these help files. Change-Id: I0c7449a1c940f44588a3723e3cc03e6fd46d06e3 Reviewed-on: https://gerrit.libreoffice.org/c/help/+/127778 Tested-by: Jenkins Reviewed-by: Olivier Hallot <olivier.hal...@libreoffice.org> diff --git a/source/text/sbasic/shared/03120103.xhp b/source/text/sbasic/shared/03120103.xhp index d0b89efdf..be43bfa28 100644 --- a/source/text/sbasic/shared/03120103.xhp +++ b/source/text/sbasic/shared/03120103.xhp @@ -26,42 +26,34 @@ </meta> <body> - - -<section id="str"> -<bookmark xml-lang="en-US" branch="index" id="bm_id3143272"> - <bookmark_value>Str function</bookmark_value> -</bookmark> - - -<paragraph id="hd_id3143272" role="heading" level="1" xml-lang="en-US"><link href="text/sbasic/shared/03120103.xhp" name="Str Function">Str Function</link></paragraph> -<paragraph id="par_id3155100" role="paragraph" xml-lang="en-US">Converts a numeric expression into a string.</paragraph> -</section> - -<paragraph id="hd_id3109850" role="heading" level="2" xml-lang="en-US">Syntax:</paragraph> -<bascode> -<paragraph id="par_id3149497" role="bascode" xml-lang="en-US">Str (Expression)</paragraph> -</bascode> - -<paragraph id="hd_id3150040" role="heading" level="2" xml-lang="en-US">Return value:</paragraph> -<paragraph id="par_id3146117" localize="false" role="paragraph">String</paragraph> - -<paragraph id="hd_id3155805" role="heading" level="2" xml-lang="en-US">Parameters:</paragraph> -<paragraph id="par_id3149178" role="paragraph" xml-lang="en-US"> <emph>Expression: </emph>Any numeric expression.</paragraph> -<paragraph id="par_id3146958" role="paragraph" xml-lang="en-US">The <emph>Str</emph> function converts a numeric variable, or the result of a calculation into a string. Negative numbers are preceded by a minus sign. Positive numbers are preceded by a space (instead of the plus sign).</paragraph> -<embed href="text/sbasic/shared/00000003.xhp#errorcode"/> -<embed href="text/sbasic/shared/00000003.xhp#err5"/> - -<paragraph id="hd_id3155419" role="heading" level="2" xml-lang="en-US">Example:</paragraph> -<bascode> -<paragraph id="par_idm1341439760" role="bascode" localize="false" xml-lang="en-US">Sub ExampleStr</paragraph> -<paragraph id="par_idm1341438528" role="bascode" localize="false" xml-lang="en-US">Dim iVar As Single</paragraph> -<paragraph id="par_idm1341437296" role="bascode" localize="false" xml-lang="en-US">Dim sVar As String</paragraph> -<paragraph id="par_idm1341436064" role="bascode" localize="false" xml-lang="en-US"> iVar = 123.123</paragraph> -<paragraph id="par_idm1341434832" role="bascode" localize="false" xml-lang="en-US"> sVar = LTrim(Str(iVar))</paragraph> -<paragraph id="par_idm1341433584" role="bascode" localize="false" xml-lang="en-US"> MsgBox sVar & chr(13) & Str(iVar)</paragraph> -<paragraph id="par_idm1341432272" role="bascode" localize="false" xml-lang="en-US">End Sub</paragraph> -</bascode> + <section id="str"> + <bookmark xml-lang="en-US" branch="index" id="bm_id3143272"> + <bookmark_value>Str function</bookmark_value> + </bookmark> + <h1 id="hd_id3143272"><link href="text/sbasic/shared/03120103.xhp" name="Str Function">Str Function</link></h1> + <paragraph id="par_id3155100" role="paragraph">Converts a numeric expression into a string.</paragraph> + </section> + <embed href="text/sbasic/shared/00000003.xhp#functsyntax"/> + <bascode> + <paragraph id="par_id3149497" role="bascode">Str (Expression)</paragraph> + </bascode> + <embed href="text/sbasic/shared/00000003.xhp#functvalue"/> + <paragraph id="par_id3146117" localize="false" role="paragraph">String</paragraph> + <embed href="text/sbasic/shared/00000003.xhp#functparameters"/> + <paragraph id="par_id3149178" role="paragraph"> <emph>Expression: </emph>Any numeric expression.</paragraph> + <paragraph id="par_id3146958" role="paragraph">The <emph>Str</emph> function converts a numeric variable, or the result of a calculation into a string. Negative numbers are preceded by a minus sign. Positive numbers are preceded by a space (instead of the plus sign).</paragraph> + <embed href="text/sbasic/shared/00000003.xhp#errorcode"/> + <embed href="text/sbasic/shared/00000003.xhp#err5"/> + <embed href="text/sbasic/shared/00000003.xhp#functexample"/> + <bascode> + <paragraph id="par_idm1341439760" role="bascode" localize="false">Sub ExampleStr</paragraph> + <paragraph id="par_idm1341438528" role="bascode" localize="false"> Dim iVar As Single</paragraph> + <paragraph id="par_idm1341437296" role="bascode" localize="false"> Dim sVar As String</paragraph> + <paragraph id="par_idm1341436064" role="bascode" localize="false"> iVar = 123.123</paragraph> + <paragraph id="par_idm1341434832" role="bascode" localize="false"> sVar = LTrim(Str(iVar))</paragraph> + <paragraph id="par_idm1341433584" role="bascode" localize="false"> MsgBox sVar & chr(13) & Str(iVar)</paragraph> + <paragraph id="par_idm1341432272" role="bascode" localize="false">End Sub</paragraph> + </bascode> </body> </helpdocument> diff --git a/source/text/sbasic/shared/03120104.xhp b/source/text/sbasic/shared/03120104.xhp index 8d34db2a8..f2738a4f7 100644 --- a/source/text/sbasic/shared/03120104.xhp +++ b/source/text/sbasic/shared/03120104.xhp @@ -26,39 +26,30 @@ </meta> <body> - - -<section id="val"> -<bookmark xml-lang="en-US" branch="index" id="bm_id3149205"> - <bookmark_value>Val function</bookmark_value> -</bookmark> - - -<paragraph id="hd_id3149205" role="heading" level="1" xml-lang="en-US"><link href="text/sbasic/shared/03120104.xhp" name="Val Function">Val Function</link></paragraph> -<paragraph id="par_id3153345" role="paragraph" xml-lang="en-US">Converts a string to a numeric expression.</paragraph> -</section> - -<paragraph id="hd_id3159157" role="heading" level="2" xml-lang="en-US">Syntax:</paragraph> -<bascode> -<paragraph id="par_id3149514" role="bascode" xml-lang="en-US">Val (Text As String)</paragraph> -</bascode> - -<paragraph id="hd_id3150669" role="heading" level="2" xml-lang="en-US">Return value:</paragraph> -<paragraph id="par_id3143228" role="paragraph" xml-lang="en-US">Double</paragraph> - -<paragraph id="hd_id3156024" role="heading" level="2" xml-lang="en-US">Parameters:</paragraph> -<paragraph id="par_id3154348" role="paragraph" xml-lang="en-US"> <emph>Text:</emph> String that represents a number.</paragraph> -<paragraph id="par_id3149670" role="paragraph" xml-lang="en-US">Using the Val function, you can convert a string that represents numbers into numeric expressions. This is the inverse of the <emph>Str</emph> function. If only part of the string contains numbers, only the first appropriate characters of the string are converted. If the string does not contain any numbers, the <emph>Val</emph> function returns the value 0.</paragraph> -<embed href="text/sbasic/shared/00000003.xhp#errorcode"/> -<embed href="text/sbasic/shared/00000003.xhp#err5"/> - -<paragraph id="hd_id3154365" role="heading" level="2" xml-lang="en-US">Example:</paragraph> -<bascode> -<paragraph id="par_idm1341084240" role="bascode" localize="false" xml-lang="en-US">Sub ExampleVal</paragraph> -<paragraph id="par_idm1341083008" role="bascode" localize="false" xml-lang="en-US"> MsgBox Val("123.123")</paragraph> -<paragraph id="par_idm1341081760" role="bascode" localize="false" xml-lang="en-US"> MsgBox Val("A123.123")</paragraph> -<paragraph id="par_idm1341080512" role="bascode" localize="false" xml-lang="en-US">End Sub</paragraph> -</bascode> + <section id="val"> + <bookmark xml-lang="en-US" branch="index" id="bm_id3149205"> + <bookmark_value>Val function</bookmark_value> + </bookmark> + <h1 id="hd_id3149205"><link href="text/sbasic/shared/03120104.xhp" name="Val Function">Val Function</link></h1> + <paragraph id="par_id3153345" role="paragraph">Converts a string to a numeric expression.</paragraph> + </section> + <embed href="text/sbasic/shared/00000003.xhp#functsyntax"/> + <bascode> + <paragraph id="par_id3149514" role="bascode">Val (Text As String)</paragraph> + </bascode> + <embed href="text/sbasic/shared/00000003.xhp#functvalue"/> + <paragraph id="par_id3143228" role="paragraph">Double</paragraph> + <embed href="text/sbasic/shared/00000003.xhp#functparameters"/> + <paragraph id="par_id3154348" role="paragraph"> <emph>Text:</emph> String that represents a number.</paragraph> + <paragraph id="par_id3149670" role="paragraph">Using the Val function, you can convert a string that represents numbers into numeric expressions. This is the inverse of the <emph>Str</emph> function. If only part of the string contains numbers, only the first appropriate characters of the string are converted. If the string does not contain any numbers, the <emph>Val</emph> function returns the value 0.</paragraph> + <embed href="text/sbasic/shared/00000003.xhp#errorcode"/> + <embed href="text/sbasic/shared/00000003.xhp#err5"/> + <embed href="text/sbasic/shared/00000003.xhp#functexample"/> + <bascode> + <paragraph id="par_idm1341084240" role="bascode" localize="false">Sub ExampleVal</paragraph> + <paragraph id="par_idm1341083008" role="bascode" localize="false"> MsgBox Val("123.123")</paragraph> + <paragraph id="par_idm1341081760" role="bascode" localize="false"> MsgBox Val("A123.123")</paragraph> + <paragraph id="par_idm1341080512" role="bascode" localize="false">End Sub</paragraph> + </bascode> </body> - -</helpdocument> \ No newline at end of file +</helpdocument>