What it does
MemblockString takes memID (an integer), offset (an integer) and length (an integer), and answers a string. memID is the id of a memblock, the one CreateMemblock returned: it is how the call knows what to act on.
Syntax
MemblockString(memID integer, offset integer, length integer) → stringParameters
| Name | Type |
|---|---|
| memID | integer |
| offset | integer |
| length | integer |
Every form returns
string
Example · generated
memblock = CreateMemblock(64)DO Print(MemblockString(memblock, 1, 1)) Sync()LOOPCreateMemblock is there to give the call something to act on; MemblockString is the line that matters. The DO … LOOP is not decoration: a classic BASIC program ends the moment it runs out of lines, and Sync() is what draws the frame.