MemoryBlock.UInt16Value

From Xojo Documentation

Method

MemoryBlock.UInt16Value(Offset as Integer) As UInt16

New in 2005r5

Supported for all project types and targets.

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

Sample Code

This example sets a UInt16 in a MemoryBlock and accesses it.

Var i As UInt16
Var m As New MemoryBlock(8)
m.UInt16Value(0) = 15

i = m.UInt16Value(0)