blob: d9c61cf31b4d12cb38adf0329a7a68cd5c7697d8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
<?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/.
*
-->
<meta>
<topic id="functionreplaceb" indexer="include" status="PUBLISH">
<title id="tit" xml-lang="en-US">REPLACEB Function</title>
<filename>/text/scalc/01/func_replaceb.xhp</filename>
</topic>
</meta>
<body>
<section id="replacebh1">
<bookmark id="bm_id461573508637964" xml-lang="en-US" branch="hid/SC_HID_FUNC_REPLACEB" localize="false"/>
<bookmark xml-lang="en-US" branch="index" id="bm_id141573508995071">
<bookmark_value>REPLACEB Function</bookmark_value>
<bookmark_value>replace text;REPLACEB Function</bookmark_value>
</bookmark>
<h1 id="hd_id771573508637966"><variable id="replaceb"><link href="text/scalc/01/func_replaceb.xhp">REPLACEB</link></variable></h1>
<paragraph id="par_id831573508637970" role="paragraph" xml-lang="en-US"><variable id="variable name"><ahelp hid=".">Returns text where an old text is replaced with a new text, using byte positions.</ahelp></variable></paragraph>
</section>
<embed href="text/scalc/00/avail_release.xhp#6.0"/>
<embed href="text/scalc/01/ful_func.xhp#func_head_syntax"/>
<paragraph role="code" id="par_id701542231253817" xml-lang="en-US">REPLACEB( Text ; Position ; Length ; NewText )</paragraph>
<paragraph role="paragraph" id="par_id331573510857418"><emph>Text</emph>: A text expression or reference to a cell containing a text expression in which the bytes are to be replaced.</paragraph>
<paragraph role="paragraph" id="par_id431573510862075"><emph>Position</emph>: the byte position from which text is to be replaced. </paragraph>
<paragraph role="paragraph" id="par_id481573510866260"><emph>Length</emph>: the number of bytes to be replaced.</paragraph>
<paragraph role="paragraph" id="par_id911573510871412"><emph>NewText</emph>: the text to be inserted.</paragraph>
<embed href="text/scalc/01/ful_func.xhp#func_head_example"/>
<paragraph role="paragraph" id="par_id431573515742206"><input>=REPLACEB("ᄩᄔᄕᄜᄝᄞᄠᄢᄣᄫᄬᄭᄮᄯᄲᄶ";4;1;"ab")</input> returns "ᄩ abᄕᄜᄝᄞᄠᄢᄣᄫᄬᄭᄮᄯᄲᄶ" .</paragraph>
<section id="relatedtopics">
<tip id="par_id71677014897959"><link href="https://wiki.documentfoundation.org/Documentation/Calc_Functions/REPLACEB">REPLACEB wiki page</link>.</tip>
<paragraph role="paragraph" localize="false" id="par_id171573510071709"><embedvar href="text/scalc/01/func_findb.xhp#findb" markup="ignore"/></paragraph>
<paragraph role="paragraph" localize="false" id="par_id831573510098350"><embedvar href="text/scalc/01/func_searchb.xhp#searchb" markup="ignore"/></paragraph>
<paragraph role="paragraph" localize="false" id="par_id251573510740369"><embedvar href="text/scalc/01/04060110.xhp#lenbvar" markup="ignore"/></paragraph>
<paragraph role="paragraph" localize="false" id="par_id121573511036023"><embedvar href="text/scalc/01/04060110.xhp#leftbvar" markup="ignore"/></paragraph>
<paragraph role="paragraph" localize="false" id="par_id591573511169353"><embedvar href="text/scalc/01/04060110.xhp#rightbvar" markup="ignore"/></paragraph>
<paragraph role="paragraph" localize="false" id="par_id381573511326662"><embedvar href="text/scalc/01/04060110.xhp#midbvar" markup="ignore"/></paragraph>
</section>
</body>
</helpdocument>
|