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.

Syntax

Midc( string, off, n )

Elements

string

A string containing character-based columns

off

The number of the offset where you want to begin extraction

n

The number of columns to be extracted

Return value

MidC returns a string of length n.

Usage

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.