_C2Hex Function | |
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
public static string _C2Hex(
string cSource,
bool lAddSpace
)
Request Example
View SourceParameters
- 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:
StringA string with the hex representation of the value
Examples
? _C2Hex("abcdef", TRUE) // 61 62 63 64 65 66
? _C2Hex("abcdef", FALSE) // 616263646566
See Also