Topic Path: Symbol Reference > Functions > ByteToOctal Function
ByteToOctal Function

Converts a byte value to its octal representation.

function ByteToOctal(
    const AByte: Byte
): string;
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.

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