Internet Direct (Indy)
Home
PreviousUpNext
CharToHex Function

Converts a character to its representation as a two-byte hexadecimal value with a prefix.

Pascal
function CharToHex(
    const APrefix: String; 
    const c: AnsiChar
): shortstring;
Parameters 
Description 
APrefix 
Prefix to insert at the beginning of the hexadecimal value.
 
Character to convert to its hexadecimal value. 

ShortString - Two byte hex value with the indicated prefix.

CharToHex is a ShortString function used to convert the character specified in c to its representation as a two-byte hexadecimal value. APrefix indicates the prefix to insert at the beginning of the return value for the function, and normally contains values like '$' or 'x' depending the intended use of the hex value.

Internet Direct (Indy) version 10.1.5
Copyright © 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Website http://www.indyproject.org.
Post feedback to the Indy Documentation newsgroup.