CImageSet:RemoveLast
The RemoveLast method removes the CImage from the tail of the list.
CImageOld = CImageSet:RemoveLast() |
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 the member at the tail of the list:
|
-- result: count=10 |
|
-- remove the last member |
|
-- result: count=9 |