MemoryBlock.Byte

From Real Software Documentation

Jump to: navigation, search
Method
MemoryBlock.Byte ( Offset as Integer ) As integer

Gets or sets the passed byte value. Returns an integer. Offset is in bytes from the beginning of the MemoryBlock.

Example

The following example stores a string in a MemoryBlock and displays it:

Dim m as New MemoryBlock(13)
m.byte(0)=12
m.byte(1)=72
m.byte(2)=101
m.byte(3)=108
m.byte(4)=108
m.byte(5)=111
m.byte(6)=32
m.byte(7)=87
m.byte(8)=111
m.byte(9)=114
m.byte(10)=108
m.byte(11)=100
m.byte(12)=33
MsgBox m.pstring(0)
Personal tools