Manuals/calci/MIDB
Jump to navigation
Jump to search
MIDB (Text,Start_Char,Num_Char)
where,
- is a text string containing the characters to be extracted,
- Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle Start-Char} is the starting position of the first character to be extracted, and
- Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle Num-Char}
represents the number of characters to be displayed in bytes.
- MIDB(), returns a specific number of characters from a text string starting at the position you specify.MIDB is intended for use with languages that use the double-byte character set (DBCS).
Description
MIDB (Text,Start_Char,Num_Char) e.g. MIDB("<#*>",1,2) displays <# as a result.
- MIDB works with the languages that use 'Double Byte Character Set' (DBCS).
- MIDB counts each double byte character as 2, when language is set to DBCS. Else it counts 1 byte per character.
- If argument Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle Text} is directly entered in the command, it should be enclosed in double quotes (e.g. "Name").
- Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle Start-Char} should be > 1, else Calci displays #N/A error message.
- If Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle Start-Char} > 'length of text', Calci displays empty text ("").
- If Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle Start-Char} + Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle Num-Char} > 'length of text', Calci displays the characters up to the end of text.
- If Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle Num-Char} is negative, Calci displays an #N/A error message.
Examples
| ABC DEF | ||
| *123*123 | ||
=MIDB(A1,1,5) : Displays 5 character string in cell A1 starting from 1st position.
Displays ABC D as the output. Space character is also included. =MIDB(A2,1,1) : Displays 1 character string in cell A3 starting from 1st position.
Displays * as the output.
Need to give examples with characters/language supporting DBCS
Related Videos
See Also
References