CImageSet:RemoveAt CImageSet:RemoveLast

CImageSet:RemoveFirst


The RemoveFirst method removes the CImage from the head of the list.

Syntax

CImage = CImageSet:RemoveFirst()

    On success, the removed CImage is returned.

    On failure, nil is returned.

Remarks

Removing a list member decreases the list length by 1 member. Removal does not delete the CImage or its associated image.

Example

Suppose a CImageSet exists with name S and that it contains 10 images. The following script fragment removes the member at the head of the list:

 

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

-- result: count=10

S:RemoveFirst()

-- remove the first member

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

-- result: count=9

Related Topics

CImageSet, RemoveAt, RemoveLast, CImage