_MEMEXISTS - QB64 Wiki

_MEMEXISTS

From QB64 Wiki

Jump to: navigation, search

The _MEMEXISTS function returns true (-1) if the memory block variable name specified exists in memory and false (0) if it does not.


Syntax:

ret = _MEMEXISTS (memblock)


Details:

  • The memblock variable name should have been created using DIM blockname AS _MEM type (DIM.
  • The function verifies that the memory variable exists in memory before using a passed block to avoid generating QB64 errors.
  • Typically, this function is used by a LIBRARY SUB or FUNCTION which accepts a _MEM structure as input to avoid an error.


See Also:



Navigation:
Go to Keyword Reference - Alphabetical
Go to Keyword Reference - By usage
Go to Main WIKI Page
Views
  • Page
  • Discussion
  • View source
  • History
Personal tools
  • Log in
Toolbox
  • What links here
  • Related changes
  • Special pages
  • Printable version