| Line 1: |
Line 1: |
| − | =LEFTB(Text, Number_bytes)= | + | <div style="font-size:30px">'''LEFTB (Text,Number_chars) '''</div><br/> |
| | | | |
| | where, | | where, |
| | *'''Text''' is a text string containing characters to extract, | | *'''Text''' is a text string containing characters to extract, |
| − | *'''Number_bytes''' represents the number of characters to be extracted. | + | *'''Number_chars''' represents the number of characters to be extracted. |
| − | | + | **LEFTB(), returns the leftmost characters from a text value.LEFTB is intended for use with languages that use the double-byte character set (DBCS). |
| − | LEFTB() displays the characters from a text string, depending on specified number of bytes. | |
| | | | |
| | == Description == | | == Description == |
| | | | |
| − | LEFTB(Text, Number_bytes) | + | LEFTB (Text,Number_chars) |
| | | | |
| | e.g. LEFTB("String",2) displays '''St''' as a result. | | e.g. LEFTB("String",2) displays '''St''' as a result. |
| Line 17: |
Line 16: |
| | *'''Text''' can be any string containing characters, numbers, symbols, blankspaces etc. | | *'''Text''' can be any string containing characters, numbers, symbols, blankspaces etc. |
| | *If argument '''Text''' is directly entered in the command, it should be enclosed in double quotes (e.g. "Name"). | | *If argument '''Text''' is directly entered in the command, it should be enclosed in double quotes (e.g. "Name"). |
| − | *Argument '''Number_bytes''' indicates the number of byte characters to be displayed from a text string. '''Number_bytes''' should be >0. | + | *Argument '''Number_chars''' indicates the number of byte characters to be displayed from a text string. '''Number_chars''' should be >0. |
| − | *If '''Number_bytes''' >'length of text', Calci displays the entire text. | + | *If '''Number_chars''' >'length of text', Calci displays the entire text. |
| − | *If '''Number_bytes''' is omitted, Calci assumes it to be 1. | + | *If '''Number_chars''' is omitted, Calci assumes it to be 1. |
| | | | |
| | == Examples == | | == Examples == |