CValueSet:Empty


The Empty method deletes all members of the CValueSet object but does not delete the object.

Syntax

CValueSet:Empty()

 

Example

S = new_valueset()

-- create a new instance of the CValueSet class.

S:Add( "key 1", 15.5 )

-- add a key and value

S:Add( "key 2", -7125.23 )

-- add a key and value

S:Add( "key 3", 0.923 )

-- add a key and value

  ...

-- do something with the CValueSet.

S:Empty()

-- empty all members from the CValueSet

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

-- result: Count= 0

Related Topics

CValueSet class, RemoveAt


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