MemoryBlock.BooleanValue

From Xojo Documentation

Method

MemoryBlock.BooleanValue(Offset as Integer) As Boolean

Supported for all project types and targets.

Gets (0=False; Any non-zero value is True) or sets (0=False). Offset is in bytes from the beginning of the MemoryBlock.

Sample Code

This example sets a byte in the MemoryBlock and then reads it.

Var mm As New MemoryBlock(4)
mm.BooleanValue(0) = True

If mm.BooleanValue(0) Then
MessageBox("True")
End If