Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- The Guide to Clip-4-Win version 3.0 - <b>oemtoansi()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
OemToAnsi()
Convert a string from the PC (DOS) character set to Windows
------------------------------------------------------------------------------

Syntax
OemToAnsi( <cOemStr> )   -->   cAnsiStr

Arguments
<cOemStr> is the PC (as used by DOS) string to be converted.

Returns
The string converted to the Windows character set.

Description
This function converts a string from the so-called OEM
character set (which is the PC character set, as used by DOS)
into a string using the Windows character set (used internally
by Windows).

Note: the OemToAnsi() function is not quite the opposite of
AnsiToOem(), as there are some characters that are not
available in both sets.

You are most likely to use this function to create a menu
item, where Windows allows only its own character set.

Example
cOem = chr(142)
if OemToAnsi( cOem ) == chr(196)       // .T.
     // always true
endif


See Also: AnsiToOem()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson