02-21-2023, 09:19 PM
To wrap it up, I meant it like this:
Erase only makes sense with dynamic arrays if one really want to delete the array - for whatever reason.
QBasic is QuickBasic without the ability to create exe files. I have both the QuickBasic 4.5 manuals and the QBasic technical reference book. No difference in the matter!
Code: (Select All)
Dim a(1 To 20)
Dim As Integer z
z = 1
For i = 1 To 20
a(i) = z
Print Using "## "; a(i);
z = z + 1
Next
Print: Print
Erase a
For i = 1 To 20
Print Using "##"; a(i);
Next
Erase only makes sense with dynamic arrays if one really want to delete the array - for whatever reason.
QBasic is QuickBasic without the ability to create exe files. I have both the QuickBasic 4.5 manuals and the QBasic technical reference book. No difference in the matter!