MemoryBlock.Int16Value

From Xojo Documentation

Method

MemoryBlock.Int16Value(Offset as Integer) As Int16

New in 2005r5

Supported for all project types and targets.

Gets or sets an Int16 value. Offset is in bytes from the beginning of the MemoryBlock.

Sample Code

This example sets an Int16 value and then accesses it.

Var i As Int16
Var m As New MemoryBlock(2)
m.Int16value(0) = 34

i = m.Int16Value(0)