Right method


Prototype

Right Proto lpszString:LPSTR, lChars:LONG

Syntax

Invoke Right, lpszString, lChars

Function

Converts the specified string to the last (rightmost) lChars characters.

Parameters

lpszString

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

lChars

Number of right characters to convert the string to.

Return value

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


REMARKS: The Right 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 RightA to convert ANSI strings in Unicode applications, or RightW to convert Unicode strings in ANSI applications.