CImageSet:RemoveAt
The RemoveAt method removes a CImage from the list by its index position in the set.
CImage = CImageSet:RemoveAt( position ) |
position specifies the removal point (see Remarks)
On success, the CImage that was removed is returned.
On failure, nil is returned.
Removing a list member decreases the set Count by 1 member. Removal does not delete the CImage or its associated image.
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 |
CImageSet class, RemoveFirst, RemoveLast, Remove, CImage class
Mira Pro x64 Script User's Guide, Copyright Ⓒ 2023 Mirametrics,
Inc. All Rights Reserved.