Mid method


Prototype

Mid Proto lpszString:LPSTR, lStart:LONG, lChars:LONG

Syntax

Invoke Mid, lpszString, lStart, lChars

Function

Converts the specified string to the middle lChars characters from the lStart position (zero-based).

Parameters

lpszString

Pointer to the effective address of the null-terminated string to be converted.

lStart

Zero-based position to be the first character of the resultant string.

lChars

Number of characters (from the lStart position) to add to the resultant string.

Return value

Eax/Rax returns TRUE if successful, or FALSE if not.


REMARKS: The Mid method expects lpszString to be a Unicode string if the application is running as Unicode, or an ANSI string if not (see the IsAppUnicode method). You can call MidA to convert ANSI strings in Unicode applications, or MidW to convert Unicode strings in ANSI applications.