Skip to content

ToANSI

See Also: String Functions, ToOEM

Purpose

Converts a string from the OEM (Original Equipment Manufacturer) character set to the ANSI (American National Standards Institute) character set.

Return Type

String

Syntax

Use GlobalFunctionsProcedures.pkg
(ToANSI({string-value}))

What It Does

ToANSI converts the string from OEM to ANSI.

Notes

  • Windows controls need to display ANSI data. Internally, DataFlex objects use OEM data. Therefore, before a value is displayed, it must be converted to ANSI.
  • When a value is moved from a Windows control back to the DataFlex object, it must be converted to OEM.
  • This translation occurs automatically, and it is not something you normally need to deal with.
  • If for some reason your application is directly working with ANSI data, you may need to convert the data manually between the two different character sets.