Dictionary

Description

A class for supporting dictionary objects in scripts that are converted from SBM AppScript to SBM ModScript. A dictionary is a case sensitive key-value container. In general, use ChaiScript's Map instead.

Dictionary can be iterated using ChaiScript's for loop. See example below.

Constructors

Operators

Methods

Example

var dict = Dictionary();
dict.Add( "key1", "val1" );
dict.Add( "key2", "val2" );
dict.Add( "key3", 3 );

for ( entry : dict ) {
  Ext.WriteStream( "${entry.first()}: ${entry.second()}\n" );
} 

Related Topics

Object Types

Working with Application Objects

CreateObject()