From Xojo Documentation


MemoryBlock.CurrencyValue(Offset as Integer) As Currency

Supported for all project types and targets.

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

Sample Code

This example sets a Currency value and then accesses it.

Var c As Currency
Var m As New MemoryBlock(8)
m.CurrencyValue(0) = 34.54
c = m.CurrencyValue(0)