CImageSet:RemoveAt
The RemoveAt method removes a CImage from the list by its index position in the set.
CImageOld = CImageSet:RemoveAt( nIndex ) where |
nIndex is the set index for the CImage to be remived.
CImageOld is the CImage object that was removed. If the CImage was not removed, nil is returned.
Removing the object decreases the set Count by 1 member. Removal does not delete the CImage.
Suppose a CImageSet exists with name S and that it contains 10 images. The following script removes from the list the CImage object at index 5:
|
-- result: count=10 |
|
-- remove the member at index 5 |
|
-- result: count=9 |