System.TDoubleRec.Bytes

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property Bytes[Index: Cardinal]: UInt8 read GetBytes write SetBytes;  // 0..7

C++

__property Byte Bytes[unsigned Index] = {read=GetBytes, write=SetBytes};

Properties

Type Visibility Source Unit Parent
property public
System.pas
System.hpp
System TDoubleRec

Description

An array of 8 System.UInt8 variables that form the internal representation of this System.TDoubleRec instance.

Note: The data type of Bytes changed in the XE3 release. Previously, Bytes was a variant part of a record. Now Bytes is an array property. For an array property such as Bytes, you cannot use the system operators System.High and System.Low, and you cannot get the pointer of an array property. In the XE2 release, you could use System.High and System.Low with Bytes, and you could get the pointer of the Bytes array.

You can use Bytes to access individual bytes of the System.TDoubleRec variable. For example, the following expression refers to the third element of a TDoubleRec-type variable:

 data.Bytes[2]

See Also