Day 026: ERASE
#5
Quote:Dammit! I was just about to use that as my signature. Now I have to come up with something else. Too bad Steve is busy! [Image: biggrin.png]

"So old I knew better once but forgot."

BTW Minerva was hinting at a memory leak if start Dynamic arrays in subs... does the above test for that?
Not seeing it:
Code: (Select All)
Do
    pete
Loop

Sub pete
    ReDim a$(10) ' Dynamic array in a sub.
    a$(5) = "3"
    Print "a$(5) in Pete sub:"; a$(5)
    'Erase a$
    'Print "erased a$() ? a$(5) "; a$(5)  'error subscript out of range
    Print "a$(5) after ERASE is non-existent."
    Print
End Sub

Pete just got a little bit older Smile
b = b + ...
Reply


Messages In This Thread
Day 026: ERASE - by Pete - 12-07-2022, 07:24 AM
RE: Day 026: ERASE - by mnrvovrfc - 12-07-2022, 10:39 AM
RE: Day 026: ERASE - by bplus - 12-07-2022, 05:20 PM
RE: Day 026: ERASE - by Pete - 12-07-2022, 05:36 PM
RE: Day 026: ERASE - by bplus - 12-07-2022, 08:18 PM
RE: Day 026: ERASE - by Pete - 12-07-2022, 08:31 PM
RE: Day 026: ERASE - by SMcNeill - 12-07-2022, 10:13 PM
RE: Day 026: ERASE - by mnrvovrfc - 12-07-2022, 10:45 PM
RE: Day 026: ERASE - by Pete - 12-07-2022, 10:54 PM
RE: Day 026: ERASE - by sivacc - 06-10-2023, 06:28 PM
RE: Day 026: ERASE - by TerryRitchie - 06-10-2023, 06:31 PM
RE: Day 026: ERASE - by SMcNeill - 06-10-2023, 06:35 PM
RE: Day 026: ERASE - by bplus - 06-10-2023, 06:39 PM



Users browsing this thread: 8 Guest(s)