Left method


Prototype

Left Proto lpszString:LPSTR, lChars:LONG

Syntax

Invoke Left, lpszString, lChars

Function

Converts the specified string to the first (leftmost) lChars characters.

Parameters

lpszString

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

lChars

A LONG value specifying the number of left characters to convert the string to.

Return value

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


REMARKS: The Left 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 LeftA to convert ANSI strings in Unicode applications, or LeftW to convert Unicode strings in ANSI applications.