Kodi Community Forum
How to empty an array - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (/forumdisplay.php?fid=33)
+--- Forum: Add-on Support (/forumdisplay.php?fid=27)
+--- Thread: How to empty an array (/showthread.php?tid=8295)

- d.i.z - 2004-12-17 01:44

how could i empty the array which is already filled with data?

i tried everything, splice, clear, assigning some empty data and still nothing.

the array is defined globally, for example myarray = []

and then filled with data with myarray.append('something')