Checking a MEMPTR variable for initialization
- Last Updated: January 17, 2024
- 1 minute read
- OpenEdge
- Version 12.8
- Documentation
You might not be sure whether a particular MEMPTR variable
is already initialized when you try to initialize it. You can verify
that the variable is initialized and obtain the size of its memory
region using the GET-SIZE function. This is the
syntax for the GET-SIZE function:
Syntax
|
If mptr-name is initialized, the GET-SIZE function
returns the size of its memory region. Otherwise, it returns zero
(0).
Note: To return a memory size greater than zero (0),
the variable must be fully initialized with the
SET-SIZE statement,
not just allocated by a shared library routine.