MEMBLOCK EXIST This command will return a value of one if the specified memblock exists, otherwise zero is returned.
Syntax
    Return Integer=MEMBLOCK EXIST(Memblock Number)
Parameters
    Memblock Number
Integer The memblock number
Returns
This command will return a value of one if the specified memblock exists, otherwise zero is returned
Description
The parameter must be an integer value.
Example Code
    MemblockNumber=1

    MAKE MEMBLOCK MemblockNumber, 1024

    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)

    endif

    rem Delete memblocks

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

    do

    loop

    end
See also
MEMBLOCKS Commands Menu Index