Cicode Programming Reference > Cicode Function Categories > String Functions Introduction > StrMid

StrMid

Gets characters from the middle of a string.

Syntax

StrMid(String, Offset, Characters)

String:

The source string.

Offset:

The offset in the string, commencing at 0.

Characters:

The number of characters to get, commencing at the offset.

Return Value

A string containing the number of characters from the offset.

Related Functions

StrLeft, StrLength, StrRight

Example

Variable=StrMid("ABCDEF",1,3);
! Sets Variable to "BCD".
Variable=StrMid("ABCDEF",4,1);
! Sets Variable to "E".

See Also

String Functions