8 Jan
2003
8 Jan
'03
9:41 p.m.
michael.taƱag wrote at 2003-1-8 02:39 -0800:
OK. I tried this to get the files in my directory into an array (even those in the subdirectory). I got the file objects into the array, but i can't seem to clear the array afterwards. so everytime i run the dtml method, the array keeps appending. What you call an "array" is usually called a "list".
You clear a list with "del list[:]" or you assign a new empty list with "results= []". Dieter