summaryrefslogtreecommitdiffstats
path: root/helpcontent2/source/text/scalc/01/func_findb.xhp
blob: eb74621a389ea9f6f5c028a252c83d9f78ffd8b5 (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
<?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="functionfindb" indexer="include" status="PUBLISH">
            <title id="tit" xml-lang="en-US">FINDB Function</title>
            <filename>/text/scalc/01/func_findb.xhp</filename>
        </topic>
    </meta>
    <body>
    <section id="findbh1">
        <bookmark id="bm_id461573508637964" xml-lang="en-US" branch="hid/SC_HID_FUNC_FINDB" localize="false"/>
        <bookmark xml-lang="en-US" branch="index" id="bm_id141573508995071">
            <bookmark_value>FINDB Function</bookmark_value>
            <bookmark_value>find text;FINDB Function</bookmark_value>
        </bookmark>
        <h1 id="hd_id771573508637966"><variable id="findb"><link href="text/scalc/01/func_findb.xhp">FINDB</link></variable></h1>
        <paragraph id="par_id831573508637970" role="paragraph" xml-lang="en-US"><variable id="variable name"><ahelp hid=".">Returns the starting position of a given text, using byte positions. FINDB is case sensitive.</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_id221573517641172">FINDB(Find Text ; Text [; Position])</paragraph>
    <paragraph role="paragraph" id="par_id241573517292388"><emph>Find Text</emph>: The text or text expression to be found.</paragraph>
    <paragraph role="paragraph" id="par_id991573517299918"><emph>Text</emph>: the text in which the search is to be made.</paragraph>
    <paragraph role="paragraph" id="par_id521573517305077"><emph>Position</emph>: The position in the text where the search starts.</paragraph>
    <embed href="text/scalc/01/ful_func.xhp#func_head_example"/>
    <paragraph role="paragraph" id="par_id481573517830373"><input>=FINDB("a"; "LibreOffice Calc")</input> returns 15. The <emph>Find Text</emph> argument is a text string that comprises a full-width, double-byte "a" character, while the <emph>Text</emph> argument comprises 12 single-byte characters followed by four full-width, double-byte characters.</paragraph>
    <section id="relatedtopics">
        <tip id="par_id491677016507189"><link href="https://wiki.documentfoundation.org/Documentation/Calc_Functions/FINDB">FINDB wiki page</link>.</tip>
        <paragraph role="paragraph" localize="false" id="par_id961573510093188"><embedvar href="text/scalc/01/func_replaceb.xhp#replaceb" 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>