Value method


Prototype

Value Proto lpszBuffer:LPSTR

Syntax

Invoke Value, lpszBuffer

Function

Converts a string value to a numerical value.

Parameters

lpszBuffer

Pointer to the effective address of the null-terminated string containing the string value.

Return value

Eax returns the resultant converted numerical value.


REMARKS: The method checks the last character in the lpszBuffer buffer and does the following interpretation (case insensitive):

'H' character A hexadecimal value
'B' or 'Y' characters A binary value
'O' or 'Q' characters An octal value


REMARKS: The Value method expects lpszBuffer 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 ValueA to get the value of an ANSI string in Unicode applications, or ValueW to get the value of a Unicode string in ANSI applications.