Difference between revisions of "Manuals/calci/SEARCHB"
Jump to navigation
Jump to search
(Created page with "<div id="6SpaceContent" class="zcontent" align="left"> '''SEARCHB'''(Text,Within_text, Start_num) where, '''Text''' - is the text string to extract. '''Within_te...") |
|||
(5 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
− | <div | + | <div style="font-size:30px">'''SEARCHB (Find_Text,Within_Text,Start_Num) '''</div><br/> |
− | + | where | |
+ | *<math>Find-Text</math> is the text to search in original string, | ||
+ | *<math>Within-Text</math> is the original string from which mentioned text is to be searched, and | ||
+ | *<math>Start-Num</math> is an optional argument that specifies the character position to start the search. | ||
+ | **SEARCHB(), finds one text value within another.SEARCHB is intended for use with languages that use the double-byte character set (DBCS). | ||
− | + | == Description == | |
− | + | SEARCHB (Find_Text,Within_Text,Start_Num) | |
+ | For Example, | ||
− | ''' | + | SEARCHB("C", "WELCOME",1) returns ''4'' |
− | '' | + | *SEARCHB function can be used to find text within a text. SEARCHB counts 2 bytes per character. SEARCHB is intended for languages that use double-byte character set (DBCS). |
+ | *<math>Within-Text</math> can be any string containing characters, numbers, symbols, blank spaces etc. | ||
+ | *<math>Find-Text</math> and <math>Within-Text</math> when directly entered in the command, should be enclosed in double quotes (e.g. "Name"). | ||
+ | *Argument <math>Start-Num</math> is optional. If omitted, Calci assumes to be 1. | ||
+ | *<math>Start-Num</math> should be an integer > 0, else Calci displays #NULL error message. | ||
+ | *If <math>Start-Num</math> > 'length of text', Calci displays #N/A error message. | ||
+ | *If string specified in <math>Within-Text</math> is not a part of the reference string <math>Find-Text</math>, Calci returns #N/A error string. | ||
+ | *SEARCHB function is not case sensitive. | ||
− | + | == Examples == | |
− | |||
− | |||
− | + | <div id="6SpaceContent" class="zcontent" align="left"> | |
− | + | {| id="TABLE3" class="SpreadSheet blue" | |
− | - | + | |- class="even" |
− | + | | class="ssh1_f" |JOHN SMITH | |
+ | | class=" " | | ||
+ | | class=" " | | ||
− | + | |- class="odd" | |
+ | | class="ssh1_f" |<#>!!! | ||
+ | | class=" " | | ||
+ | | class=" " | | ||
− | + | |- class="even" | |
+ | | class="ssh1_f" | | ||
+ | | class=" " | | ||
+ | | class=" " | | ||
− | + | |} | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | =SEARCHB("I", A1) : Returns '''8''' as output. | |
− | + | =SEARCHB(">", A2) : Returns '''3''' as output. | |
− | |||
− | + | <font color ="Red">Need to give examples with characters/language supporting DBCS </font> | |
+ | ==Related Videos== | ||
− | + | {{#ev:youtube|x8zquflNpnM|280|center|SEARCH}} | |
− | + | == See Also == | |
− | + | *[[Manuals/calci/SEARCH | SEARCH]] | |
+ | *[[Manuals/calci/REPLACEB | REPLACEB]] | ||
− | + | ==References== | |
− | + | *[http://en.wikipedia.org/wiki/Autocorrection Find and Replace] | |
− | |||
− | |||
− | + | *[[Z_API_Functions | List of Main Z Functions]] | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | [[ | ||
− | | | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | *[[ Z3 | Z3 home ]] | |
− |
Latest revision as of 16:55, 13 August 2018
SEARCHB (Find_Text,Within_Text,Start_Num)
where
- is the text to search in original string,
- is the original string from which mentioned text is to be searched, and
- is an optional argument that specifies the character position to start the search.
- SEARCHB(), finds one text value within another.SEARCHB is intended for use with languages that use the double-byte character set (DBCS).
Description
SEARCHB (Find_Text,Within_Text,Start_Num) For Example,
SEARCHB("C", "WELCOME",1) returns 4
- SEARCHB function can be used to find text within a text. SEARCHB counts 2 bytes per character. SEARCHB is intended for languages that use double-byte character set (DBCS).
- can be any string containing characters, numbers, symbols, blank spaces etc.
- and when directly entered in the command, should be enclosed in double quotes (e.g. "Name").
- Argument is optional. If omitted, Calci assumes to be 1.
- should be an integer > 0, else Calci displays #NULL error message.
- If > 'length of text', Calci displays #N/A error message.
- If string specified in is not a part of the reference string , Calci returns #N/A error string.
- SEARCHB function is not case sensitive.
Examples
JOHN SMITH | ||
<#>!!! | ||
=SEARCHB("I", A1) : Returns 8 as output. =SEARCHB(">", A2) : Returns 3 as output.
Need to give examples with characters/language supporting DBCS
Related Videos
See Also
References