1
1
Fork 0
mirror of https://github.com/QB64Official/qb64.git synced 2024-07-03 10:01:21 +00:00
qb64/internal/help/_MEMEXISTS.txt

24 lines
858 B
Plaintext
Raw Normal View History

2016-03-18 11:36:04 +00:00
{{DISPLAYTITLE:_MEMEXISTS}}
2017-10-10 14:55:21 +00:00
The [[_MEMEXISTS]] function returns true (-1) if the memory block variable name specified exists in memory and false (0) if it does not.
2016-03-18 11:36:04 +00:00
{{PageSyntax}}
2017-10-10 14:55:21 +00:00
: {{Parameter|result}} = [[_MEMEXISTS]]({{Parameter|memBlock}})
2016-03-18 11:36:04 +00:00
2017-10-10 14:55:21 +00:00
{{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 block, to avoid generating QB64 errors.
* Typically, this function is used by a [[DECLARE LIBRARY|LIBRARY]] [[SUB]] or [[FUNCTION]] which accepts a [[_MEM]] structure as input, to avoid an error.
2016-03-18 11:36:04 +00:00
2017-10-10 14:55:21 +00:00
{{Parameter|See Also:}}
2016-03-18 11:36:04 +00:00
* [[_MEM (function)]]
* [[_MEMELEMENT]], [[_MEMCOPY]]
* [[_MEMIMAGE]], [[_MEMNEW]]
* [[_MEMGET]], [[_MEMPUT]]
* [[_MEMFILL]], [[_MEMFREE]]
2019-04-15 01:15:33 +00:00
{{PageNavigation}}