07-17-2024, 01:21 PM
(07-17-2024, 12:49 PM)aurel Wrote:Yes, it's not so easy to make something understandable this.Quote:because a dynamic array only exists while the program is runningexcuse me @Kernel but that is kind of funny
of course that array exist in memory when program running
The lifespan of static variables or arrays corresponds to that of the program module in which they were defined. They cannot really be deleted. With Erase, all array elements are only initialized with zero.
The memory space of dynamic arrays, on the other hand, is only acquired at runtime when a declaration is made in the program. The Erase command enables the occupied memory space to be released, when the array is no longer needed.