Try OpenEdge Now
skip to main content
ABL Data Types Addenda
Large object data types : LONGCHAR data type : LONGCHAR code pages
 

LONGCHAR code pages

The default value of the code page for a LONGCHAR is the -cpinternal code page. To set the code page of a LONGCHAR variable to a different code page, use the following FIX-CODEPAGE statement:

Syntax

FIX-CODEPAGE ( longchar ) = codepage
You can only use this statement to set the code page for a LONGCHAR variable that is empty. If you try to use the FIX-CODEPAGE statement for a LONGCHAR variable that already has a value, the ABL Virtual Machine (AVM) generates an error.
When set to a valid code page, the code page of the specified variable is fixed and overrides any default behavior in assignment operations. For assignment rules, see OpenEdge Development: ABL Reference.