| Line 1: |
Line 1: |
| | =MIDB(txt, snum, nob)= | | =MIDB(txt, snum, nob)= |
| − | | + | <div style="font-size:30px">'''MIDB (Text,Start_Char,Num_Char) '''</div><br/> |
| | where, | | where, |
| − | *<math>txt</math> is a text string containing the characters to be extracted, | + | *<math>Text</math> is a text string containing the characters to be extracted, |
| − | *<math>snum</math> is the starting position of the first character to be extracted, and | + | *<math>Start-Char</math> is the starting position of the first character to be extracted, and |
| − | *<math>nob</math> represents the number of characters to be displayed in bytes. | + | *<math>Num-Char</math> 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). |
| − | MIDB() displays a specific number of characters from a text string, with reference to the specified starting position and specified number of bytes. | |
| | | | |
| | == Description == | | == Description == |
| | | | |
| − | MIDB(txt, snum, nob) | + | MIDB (Text,Start_Char,Num_Char) |
| − | | |
| | e.g. MIDB("<#*>",1,2) displays '''<#''' as a result. | | e.g. MIDB("<#*>",1,2) displays '''<#''' as a result. |
| | | | |
| | *MIDB works with the languages that use 'Double Byte Character Set' (DBCS). | | *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. | | *MIDB counts each double byte character as 2, when language is set to DBCS. Else it counts 1 byte per character. |
| − | *If argument <math>txt</math> is directly entered in the command, it should be enclosed in double quotes (e.g. "Name"). | + | *If argument <math>Text</math> is directly entered in the command, it should be enclosed in double quotes (e.g. "Name"). |
| − | *<math>snum</math> should be > 1, else Calci displays #N/A error message. | + | *<math>Start-Char</math> should be > 1, else Calci displays #N/A error message. |
| − | *If <math>snum</math> > 'length of text', Calci displays empty text (""). | + | *If <math>Start-Char</math> > 'length of text', Calci displays empty text (""). |
| − | *If <math>snum</math> + <math>nob</math> > 'length of text', Calci displays the characters up to the end of text. | + | *If <math>Start-Char</math> + <math>Num_Char</math> > 'length of text', Calci displays the characters up to the end of text. |
| − | *If <math>noc</math> is negative, Calci displays an #N/A error message. | + | *If <math>Num_Char</math> is negative, Calci displays an #N/A error message. |
| | | | |
| | == Examples == | | == Examples == |