PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Converts a character string in OEM format (DOS) into a character string in ANSI format (Windows). The accented characters differ in the two standards. The conversion consists in modifying the accented characters.
Reminder:
  • ANSI is the format of characters according to the Windows standard.
  • OEM is the format of characters according to the DOS standard (or the format of the "console" window of Windows).
Example
Str is string
Str = Charact(130) + "t" + Charact(130)  // "été" in OEM
Info(OemToAnsi(Str))
// displays "été" in ANSI in the Windows information window
Syntax
<Result> = OemToAnsi(<OEM Character String>)
<Result>: Ansi character string
Character string in ANSI format.
<OEM Character String>: Character string
Character string in OEM format to convert.
Remarks
  • OemToAnsi does not convert the characters whose ASCII code is included between 0 and 31 (control characters).
  • Caution: OemToAnsi must not be used with a character string containing specific OEM characters (accented characters): these characters will be transformed and the result will be incorrect.
Components
WINDEVReports and Queries wd230vm.dll
Linux wd230vm.so
Minimum required version
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment