Click or drag to resize

AsHexString Function

X#
Convert a value to a hexadecimal string.

Namespace:  XSharp.RT
Assembly:  XSharp.RT (in XSharp.RT.dll) Version: 2.19
Syntax
 FUNCTION AsHexString(
	uValue AS USUAL
) AS STRING
Request Example View Source

Parameters

uValue
Type: Usual
A value of any type.

Return Value

Type: String
Remarks
Examples
This example uses AsHexString() to display the hexadecimal dumps of different expressions:
X#
1LOCAL cAlpha AS STRING
2LOCAL siSum AS SHORTINT
3cAlpha := "ABCDEF"
4siSum := 100
5? AsHexString(cAlpha)        // 41 42 43 44 45 46
6? AsHexString(siSum)        // 00000064
7? AsHexString("abcdef")        // 61 62 63 64 65 66
See Also