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

Converts a byte value to its hexadecimal representation.

File
function ByteToHex(
    const AByte: Byte
): string;
Parameters 
Description 
AByte 
Value to be converted to its hexadecimal representation. 

ShortString - Hexadecimal representation of the specified value.

ByteToHex is a ShortString function used to convert the byte value in AByte to its representation as a string of hexadecimal values. The return value will contain 2 hexadecimal characters representing the original byte value. 

ByteToHex is used in IPv4ToHex when converting IP version 4 IP addresses from their numeric or dotted decimal representations to hexadecimal.

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