DF_FILE_OEM_TRANSLATION¶

Applies to: ORAFlex SQLFlex MYSQLFlex PGFlex DB2Flex

There are two sets of code pages used in windows, ANSI and OEM. ANSI is what is commonly used now, but some data still uses the OEM code pages. When migrating data, this attribute is used to determine whether the OEM data will be translated to ANSI during the migration. For example, migrating passwords with special characters may call for different code pages. Setting this attribute to true will convert the OEM data to ANSI, setting it to false will not.

Syntax

Set_Attribute DF_FILE_OEM_TRANSLATION of {FileNumber} to {variable}
Get_Attribute DF_FILE_OEM_TRANSLATION of {FileNumber} to {variable}

Parameter

Description

FileNumber

Number of the file

variable

Indicates if OEM data will be converted to ANSI. True converts it, false does not.

Example

open Customer

Handle hFile
Boolean bTranslate

Move Customer.File_Number to hFile

Structure_Start hFile "ORA_DRV"
    Set_Attribute DF_FILE_OEM_TRANSLATION of hFile to True
Structure_End hFile DF_STRUCTEND_OPT_NONE "." 0