Click or drag to resize

_C2Hex Function

X#
Convert a string value to a hexadecimal string.

Namespace:  XSharp.Core
Assembly:  XSharp.Core (in XSharp.Core.dll) Version: 2.21
Syntax
 FUNCTION _C2Hex(
	cSource AS STRING,
	lAddSpace AS LOGIC
) AS STRING
Request Example View Source

Parameters

cSource
Type: String
String to convert
lAddSpace
Type: Logic
When TRUE then the inidividual characters are separated with a space in the result string

Return Value

Type: String
A string with the hex representation of the value
Examples
? _C2Hex("abcdef", TRUE) // 61 62 63 64 65 66
? _C2Hex("abcdef", FALSE) // 616263646566
See Also