Products Downloads


French version


 


ADELIA

VADELIA

SADELIA

WADELIA

EADELIA

(I/B)

(I/B)

(B)

(I/B)

(B)


Description

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


Syntax

Result = &HEXA_CONVERSION(Character)


Parameters


Description

Contents

Controls

Result

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. The hexadecimal abcdef figures are given in lower case letters.

-  UNICODE for Java generator, Web client or with Unicode generation. The hexadecimal abcdef figures are given in lower case letters.


Character

One-character alphanumeric constant or variable.

Character to be converted.

Mandatory parameter.


Example

CHARACTER = 'A'

HEXA_VALUE = &HEXA_CONVERSION(CHARACTER)

* In a part generated in RPG

* The hexa value is C1.

*

CHARACTER = 'Z'

HEXA_VALUE = &HEXA_CONVERSION(CHARACTER)

* In a part generated in RPG

* The hexa value is E9.


List of predefined functions by topic


↑ Top of page

  • Aucune étiquette