GET-SIZE function
- Last Updated: February 11, 2026
- 1 minute read
- OpenEdge
- Version 13.0
- Documentation
Returns, as an INT64 value, the allocated byte size of the memory region associated with the specified MEMPTR variable.
Note: Does not apply to SpeedScript programming.
Syntax
|
- memptr-var
- A MEMPTR variable. If the variable is uninitialized (has no associated memory region), the function returns 0.
Example
The following example allocates three memory regions-for a BITMAPINFO structure, a BITMAPINFOHEADER structure, and an RGB color array. It then displays the allocation size for each region. These structures describe a device-independent bitmap for Windows dynamic link library (DLL) routines. For more information on these bitmap structures, see your Windows Software Development Kit documentation.
r-getsiz.p
|
Notes
- To return a memory size greater than 0, the MEMPTR variable must be fully initialized, not just pre-initialized by a DLL or UNIX shared library routine.
- MEMPTR structures are initialized using the SET-SIZE statement.
- For more information on using the MEMPTR data type, see OpenEdge Programming Interfaces.