forked from amazingfate/help
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.hallot@libreoffice.org>
60 lines
3.2 KiB
XML
60 lines
3.2 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<helpdocument version="1.0">
|
|
<!--
|
|
* This file is part of the LibreOffice project.
|
|
*
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
*
|
|
* This file incorporates work covered by the following license notice:
|
|
*
|
|
* Licensed to the Apache Software Foundation (ASF) under one or more
|
|
* contributor license agreements. See the NOTICE file distributed
|
|
* with this work for additional information regarding copyright
|
|
* ownership. The ASF licenses this file to you under the Apache
|
|
* License, Version 2.0 (the "License"); you may not use this file
|
|
* except in compliance with the License. You may obtain a copy of
|
|
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
|
-->
|
|
|
|
<meta>
|
|
<topic id="textsbasicshared03120103xml" indexer="include" status="PUBLISH">
|
|
<title id="tit" xml-lang="en-US">Str Function</title>
|
|
<filename>/text/sbasic/shared/03120103.xhp</filename>
|
|
</topic>
|
|
</meta>
|
|
|
|
<body>
|
|
<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>
|