HexString - Get a hex representation for all characters in a string

Top  Previous  Next

Syntax

 

<cHexString> := HexString( <cString> )

 

Parameters

 

<cString>

 

A string whose characters are to be returned in hexadecimal representation.

 

Return value

 

A string that contains the hexadecimal representation of all characters in <cString> separated by spaces.

 

Description

 

HexString calculates the hexadecimal representation for every character in a string and creates a new string from them.

 

Classification

 

Core

 

Category

 

Miscellaneous

 

Quick Info

 

Library: cckptcor.lib / cckptcor.dll

 

See also

 

Hex

 

Example

 

 

#INCLUDE "CockpitCoreLibs.ch"

 

FUNCTION Main

 

* This will display "43 6F 63 6B 70 69 74"

? HexString("Cockpit")

 

RETURN NIL