CSet:RemoveAt
The RemoveAt method removes a member from the CSet by its index position in the set.
member = CSet:RemoveAt( index ) |
This method removes the member at an index. In comparison, the Remove method removes the set member by matching its value to set members. Removing a set member decreases the list length by 1 member. Removal does not delete the CImage or its associated image.
Suppose a CSet exists with name S and that it contains 10 values. The following script fragment removes from the list the member at index 5:
|
-- result: count=10 |
|
-- remove the member at index 5 |
|
-- result: count=9 |