Internet Direct (Indy)
Home
PreviousUpNext
ByteToHex Function

Converts a byte value to its hexadecimal representation.

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

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.