A list of products available on this site
Documentation for XtraMania's xtras
Prices and links to the online store
Xtras, PDFs, samples
Have a question? Ask us!
Contacts
Logo. www.xtramaina.com  
Home Search E-mail
BinaryXtra Reference/Byte\[i\]

objBinary.byte[index]

Syntax

objBinary.byte[index]=newByteVal
byteVal=objBinary.byte[index]

Parameters

Index - an integer 1-based offset at the binary data. The first byte has offset 1, the last byte has offset Size.

Gets

Integer value in the range 0-255 - the byte at offset index of the binary data contained in the wrapper.

Sets

Integer value in the range 0-255 - the byte to be put at offset index of the binary data contained in the wrapper.

Description

Indexed property allows direct access to the binary data contained in the wrapper. To use this property binary wrapper has to contain something.
New or empty binary wrappers do not contain any data, so using this property will generate a 'Index out of bounds' error. See debugging for more info on error reporting mechanism.

Site homeSearchContact author © Eugene Shoustrov. www.xtramania.com