# Mid

## Description

Extracts a sub string from the given string located at the position provided.

## Definition

string Mid( strin, position, length )

char* agk::Mid( const char* strin, UINT position, int length )

## Parameters

- strin - The string to be extracted from
- position - The position to start within the string, the first character is position 1.
- length - The number of characters to extract from the string, use minus 1 to continue to the end of the string