What it does
MemblockSize takes memID (an integer), and answers an integer. memID is the id of a memblock, the one CreateMemblock returned: it is how the call knows what to act on.
Syntax
MemblockSize(memID integer) → integerParameters
| Name | Type |
|---|---|
| memID | integer |
Every form returns
integer
Example · generated
memblock = CreateMemblock(64)DO Print(MemblockSize(memblock)) Sync()LOOPCreateMemblock is there to give the call something to act on; MemblockSize 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.