LOTUSSCRIPT LANGUAGE


MidC function
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


off
n
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.

See Also