MEMBLOCK DWORD This command will read a dword from the specified location of the memblock.
Syntax
    Return DWORD=MEMBLOCK DWORD(Memblock Number, Position)
Parameters
    Memblock Number
Integer The memblock number
    Position
Integer This value is an integer number such as 1.
Returns
The DWord returned will be a value between 0 and 4294967295
Description
The memblock must exist or the command will fail. The Position value is specified in bytes. The DWord returned will be a value between 0 and 4294967295. The parameters must be specified using integer values.
Example Code
    MemblockNumber=1

    MAKE MEMBLOCK MemblockNumber, 1024

    WRITE MEMBLOCK DWORD MemblockNumber, 0, 4294967295

    rem Display data

    cls

    print "MEMBLOCK EXPRESSION DATA"

    print

    if MEMBLOCK EXIST(MemblockNumber)=1

    print "memblock:";MemblockNumber

    print "exist:";MEMBLOCK EXIST(MemblockNumber)

    print "ptr:";GET MEMBLOCK PTR(MemblockNumber)

    print "size:";GET MEMBLOCK SIZE(MemblockNumber)

    print "dword:";MEMBLOCK DWORD(MemblockNumber, 0)

    endif

    rem Delete memblocks

    if MEMBLOCK EXIST(MemblockNumber)=1 then DELETE MEMBLOCK MemblockNumber

    do

    loop

    end
See also
MEMBLOCKS Commands Menu Index