CImageSet:RemoveAt


The RemoveAt method removes a CImage from the list by its index position in the set.

Syntax

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.

Example

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:

Printf("count=%d", S:Count() )

-- result: count=10

S:RemoveAt( 5 )

-- remove the member at index 5

Printf("count=%d", S:Count() )

-- result: count=9

Related Topics

RemoveFirst

RemoveLast

Remove

CImageSet class

CImage class