MemoryBlock.UInt8Value

From Xojo Documentation

Method

MemoryBlock.UInt8Value(Offset as Integer) As UInt8

New in 2005r5

Supported for all project types and targets.

Gets or sets a UInt8 value. Offset is in bytes from the beginning of the MemoryBlock.

Sample Code

This example sets a UInt8 to a MemoryBlock and then accesses it.

Var i As UInt8
Var m As New MemoryBlock(1)
m.UInt8Value(0) = 6

i = m.UInt8Value(0)