Topic Path: Symbol Reference > Functions > CharToHex Function
ContentsIndexHome
PreviousUpNext
CharToHex Function

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

File
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.

Copyright © 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Post feedback to the Indy Docs Newsgroup.