Click or drag to resize

Oem2AnsiA Function (Byte)

Convert a string of OEM characters to ANSI characters, changing the contents of the argument as well as the return value.

Namespace:  XSharp.Core
Assembly:  XSharp.Core (in XSharp.Core.dll) Version: 2.5
Syntax
 FUNCTION Oem2AnsiA(
	bSource AS BYTE[]
) AS VOID

Parameters

bSource
Type: Byte
A byte array that contains the string to convert

Return Value

Type: 
A converted string of ANSI characters.
Remarks
Oem2AnsiA() is the same as Oem2Ansi(), except that Oem2AnsiA() also replaces the contents of the original string with OEM characters.
Examples
This example uses Oem2AnsiA() to change the contents of a variable by translating each character from OEM to ANSI:
X#
1LOCAL cString AS STRING
2cString := "ßá"
3Oem2AnsiA(cString)
See Also