03-01-2024, 10:37 PM
(This post was last modified: 03-01-2024, 10:38 PM by Kernelpanic.)
I received the book “QBasic Compendium” mentioned today. As expected, a very good book.
I also looked at the section, where is the difference between static and dynamic is explained well again (there are always problems there).
ERASE deletes an array. However, this deletion is different depending on whether it is a static or dynamic array.
When applied to a static arrayx, ERASE simply assigns a value of 0 to all elements. That is, it reinitializes the array and deletes all elements in it.
If ERASE applied to a dynamic array does not delete the values of the array, but the array itself. It is completely removed from memory and then no longer exists. It's just not there anymore, as if it never existed.
(Some people had problems with that.)
I also looked at the section, where is the difference between static and dynamic is explained well again (there are always problems there).
ERASE deletes an array. However, this deletion is different depending on whether it is a static or dynamic array.
When applied to a static arrayx, ERASE simply assigns a value of 0 to all elements. That is, it reinitializes the array and deletes all elements in it.
If ERASE applied to a dynamic array does not delete the values of the array, but the array itself. It is completely removed from memory and then no longer exists. It's just not there anymore, as if it never existed.
(Some people had problems with that.)