Products Downloads


French version


 

 

ADELIA

VADELIA

SADELIA

WADELIA

MADELIA

(I/B)

(I/B)

(B)

(I/B)

(I)

 

Description

This predefined function is used to convert a hexadecimal value into character form.

 

Syntax

Result = &CHAR_CONVERSION(Hexadecimal value)

 

Parameters

 

Description

Contents

Controls

Result

One-character alphanumeric variable.

Result of the conversion.

 

Hexadecimal value

Alphanumerical variable of 2 to 4 characters.
With Unicode generation:
4 characters (mandatory).

Hexadecimal value of the character set as a parameter.

The hexadecimal value set as:

-  EBCDIC for RPG generator with non-Unicode generation. The hexadecimal ABCDEF figures are given in upper case letters.

-  ANSI for Windows C generator with non-Unicode generation.

-  UNICODE for Java generator, Web client, Mobile client, or with Unicode generation (4 characters).

Mandatory parameter.

 

Example

HEXA_VALUE = 'C1'

CHARACTER = &CHAR_CONVERSION(HEXA_VALUE)

* In a part generated in RPG

* The character is A.

 

HEXA_VALUE = 'E9'

CHARACTER = &CHAR_CONVERSION(HEXA_VALUE)

* In a part generated in RPG

* The character is Z.

 

List of predefined functions by topic

 

↑ Top of page

  • Aucune étiquette