ansi2Ascii Function
Dynamics AX 4.0
Converts a string from the ANSI code page to the OEM code page 437.
Note |
|---|
|
This function is obsolete. For more information, see the Remarks section. |
str ansi2Ascii(str ansistring)
The ansi2Ascii and ascii2Ansi functions remain available for backward compatibility and to provide support for code points of less than 128. You should now use the TextIo class. It automatically translates Unicode to code page 437, or vice versa, during read/write operations.
Following is the previous calling pattern.
AsciiIo io;
FileIoPermission perm;
;
perm = new FileIoPermission("filename", "w");
if (perm == null)
{
return;
}
perm.assert();
// BP deviation documented.
io = new AsciiIo("filename", "w");
if (io != null)
{
io.write(ansi2ascii("string"));
}
Following is the new calling pattern.
TextIO io;
;
io = new TextIO("filename", "w", 437);
…
io.write("string");
Community Additions
ADD
Show:
Note