delitems
no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
— | delitems [2007/02/27 04:57] (current) – created - external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | # $EPIC: delitems.txt, | ||
+ | ======Synopsis: | ||
+ | $delitems(< | ||
+ | |||
+ | ======Technical: | ||
+ | This function is used to delete multiple entries from an array created with | ||
+ | $[[setitem]](). | ||
+ | the array is deleted too. For any item you delete from the array, | ||
+ | all items beyond it (with higher item numbers) are shifted down | ||
+ | by one to fill in the gap. | ||
+ | |||
+ | This puts the array into " | ||
+ | associating with re-sorting the array doesn' | ||
+ | time you try to get an item. This makes it more efficient than | ||
+ | [[delitem]] in a loop. | ||
+ | |||
+ | ======Practical: | ||
+ | This function is used to delete multiple items from an array. | ||
+ | for this are pretty obvious. | ||
+ | that you might want to remove them, too. | ||
+ | |||
+ | ======Returns: | ||
+ | < | ||
+ | | ||
+ | | ||
+ | 0 on success | ||
+ | </ | ||
+ | |||
+ | ======Examples: | ||
+ | $delitem(array 2) | ||
+ | $delitem(fake_array 4) error, " | ||
+ | $delitem(array -2) error, item -2 does not exist | ||
delitems.txt · Last modified: 2007/02/27 04:57 by 127.0.0.1