Designates a single byte as part of a chunk expression.
# Metadata
Platforms: desktop, server, mobile OS: mac, windows, linux, ios, android Introduced: 4.0 Security:
# Syntax
byte
# Examples
get byte 1 of tString
put byte 12 to 14 of it into tAnswer
get the first byte of tString
repeat for each byte tByte in tString
# Description
A byte is an 8-bit unit and can only be reliably used with binary data.
The hierarchy of the new and altered chunk types is as follows:
byte w of codeunit x of codepoint y of char z of word ...
>*Note:* In versions prior to 7.0 the byte chunk was identical in > functionality to the character chunk. For backwards compatibility the > byte chunk returns the corresponding native character from Unicode > text, or a "?" if nor reperesentable, but this behavior is deprecated > and should not be used in new code.
# Tags
# See
- **keyword:** characters, codepoint, codeunits, character, codepoints, codeunit, bytes - **glossary:** chunk expression, keyword, container