CValueSet:Copy CValueSet:delete

CValueSet:Count


The Count method returns the number of members (key, value pairs) in the CValueSet object.

Syntax

nCount = CValueSet:Count()

bullet.gif    Returns the number of members as an integer value.

 

Example

The following example creates a CValueSet S and adds members to it, then returns the count of members:

S = new_valueset()

-- constructor, default to values of type "number"

S:Add( "my first string", 15.5 )

-- add a key and value

S:Add( "my second string", -7125.23 )

-- add a key and value

S:Add( "my third string", 0.923 )

-- add a key and value

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

-- result: Count = 3

Related Topics

CValueSet class


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