Internet Direct (Indy)
Home
PreviousUpNext
ByteToOctal Function

Converts a byte value to its octal representation.

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

String - Octal representation of the specified value.

ByteToOctal is a String function used to convert the byte value in AByte to its representation as a string of octal characters. The return value will contain 3 characters representing the octal value for the original byte. '0' (zero) characters will be prepended to the return value, as required. 

ByteToOctal is used in IPv4ToOctal when converting IP version 4 IP addresses from their dotted decimal representation to a string of octal characters.

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.