10 12 7 AsHexString

LANSA Technical

10.12.7 AsHexString

Convert integers to hexadecimal through Binary Strings.

A hexadecimal string cannot be represented in a numeric type, so the Binary String primitive is used as a staging area for the conversion.

Input Parameters

None

Portability
Consideration

Note that the byte order of the result depends on the byte order of the computer being used.

 

Example

Define Field(#myRBStr) Type(*BIN) Length(128)

Define Field(#L8Int) Type(*INT) Length(8)

 

#myRBStr := (9999).AsBinString()

#myRBStr.AsHexString() gives 0F270000 (on Windows computers).

 

Ý 10.12 Binary Intrinsic Functions