I have an array into which I put values
programmatically.
In an earlier test values were put into
the array elements and now I can't find
a way to empty the array.
Even after I "Close and remove from memory"
or close Rev and restart the same values are
still there.
I've noticed this with other variables which
appear in the Variable Watcher window even
when I haven't run the script in which they're used.
How do I get rid of these values?
Array won't go away!
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Array won't go away!
Life is just a bowl of cherries.
-
- VIP Livecode Opensource Backer
- Posts: 977
- Joined: Sat Apr 08, 2006 7:47 am
- Contact:
If you just want to empty the entire array in one go, use:
And if you want to delete the entire array from memory, use:
You can also remove individual array entires using:
Hope this helped,
Jan Schenkel.
Code: Select all
put empty into theArrayVariabe
Code: Select all
delete theArrayVariable
Code: Select all
delete variable theArrayVariable["thekey"]
Jan Schenkel.
Quartam Reports & PDF Library for LiveCode
www.quartam.com
www.quartam.com