MidC function (LotusScript® Language)

Extracts a number of character columns from a string starting at a character column offset, searching left to right. The MidC function is used for column-based writing systems, such as Thai.


Midc( string, off, n )



A string containing character-based columns


The number of the offset where you want to begin extraction


The number of columns to be extracted

Return value

MidC returns a string of length n.


If there are fewer than n columns in the string beginning at the off position, or if you omit the n argument, the function returns a string consisting of the characters from off to the end of string.

If off is greater than the length in bytes of string, the function returns an empty string.