CSet:Append


The Append method appends a member to the end of the set.

Syntax

CSet:Append( member )

bullet.gif    member is the object to append after the end of the set.

Remarks

This method adds a member at the end of the set. In comparison, the Insert method adds a member prior to an index within the set.

Example

The following script appends strings to a CSet:

S = new_set()

-- create a CSet

S:Append("First")

-- add a string to the set

S:Append("Second")

-- add a string to the set

S:Append("Third")

-- add a string to the set

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

-- Result: N = 3

Related Topics

CSet, Insert


Mira Pro x64 Script User's Guide, Copyright Ⓒ 2023 Mirametrics, Inc. All Rights Reserved.