MIDB
function MIDB(arg1: string = null, arg2: number = null, arg3: number = null): string
Description
Extracts the characters from the specified string starting from any position 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 from which to extract the characters.
- arg2
number
null The position of the first character to extract. The first text character is 1.
- arg3
number
null A number of the characters to extract, based on bytes.
Returns
string
Try It
var oWorksheet = Api.GetActiveSheet();
var oFunction = Api.GetWorksheetFunction();
oWorksheet.GetRange("A1").SetValue(oFunction.MIDB("Online Office", 3, 4));