LEFTB
function LEFTB(arg1: string = null, arg2: number = null): string
Description
Extracts the substring from the specified string starting from the left character and is intended for languages that use the double-byte character set (DBCS) like Japanese, Chinese, Korean etc.
Parameters
- arg1
string
null The text string containing the characters to extract.
- arg2
number
null A number of the substring characters, based on bytes.
Returns
string
Try It
var oWorksheet = Api.GetActiveSheet();
var oFunction = Api.GetWorksheetFunction();
oWorksheet.GetRange("A1").SetValue(oFunction.LEFTB("Online Office", 6));