byte

Typekeyword
DictionaryLCS
LibraryLiveCode Script
Syntax
byte
Summary

Designates a single byte as part of a chunk expression.

Introduced4.0
OSmac, windows, linux, ios, android
Platformsdesktop, server, mobile
Example
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
RelatedKeyword: characters, codepoint, codeunits, character, codepoints, codeunit, bytes
Glossary: chunk expression, keyword, container
Description

Use the byte keyword to refer to a specific byte or bytes in a container.

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.

Tagstext processing