1
1
Fork 0
mirror of https://github.com/DualBrain/QB64.git synced 2023-11-19 13:10:13 +00:00
QB64-website/wiki/_MEMEXISTS.md
2022-12-24 21:14:48 -06:00

880 B

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

Syntax

result = _MEMEXISTS(memBlock)

Description

  • The memBlock variable name must have been created using DIM memBlock 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 DECLARE LIBRARY SUB or FUNCTION which accepts a _MEM structure as input, to avoid an error.

See Also