MEMEXISTS: Difference between revisions
Jump to navigation
Jump to search
Navigation:
Main Page with Articles and Tutorials
Keyword Reference - Alphabetical
Keyword Reference - By usage
Report a broken link
(Created page with "{{DISPLAYTITLE:_MEMEXISTS}} The _MEMEXISTS function returns true (-1) if the memory block variable name specified exists in memory and false (0) if it does not. {{PageSyntax}} : {{Parameter|result}} = _MEMEXISTS({{Parameter|memBlock}}) {{PageDescription}} * The {{Parameter|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...") |
No edit summary Tag: Reverted |
||
Line 22: | Line 22: | ||
{{PageNavigation}} | {{PageNavigation}} | ||
[[Category:Latest]] |
Revision as of 09:13, 25 June 2022
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 LIBRARY SUB or FUNCTION which accepts a _MEM structure as input, to avoid an error.
See Also: