Lasso Soft Inc. > Home

Map

A map is an object that can hold multiple values which are referenced by keys. A map is similar to a database record where values can be updated or retrieved based on a name.

Maps can hold values of any data type. Both the key and the value can be of any data type, but the keys are usually integers or strings. The size of a map is only limited by the amount of memory that is available.

A new, empty map can be created using the [Map] tag. For example, [Variable: 'myMap' = (Map)] places a new, empty map in the variable myMap.

A map can also be created with values by specifying parameters within the [Map] tag. Each name/value parameter to the [Map] tag becomes one element of the array. For exmaple, [Variable: 'myMap' = (Map: 1='First', 2='Second', 3='Third')] creates a new map with three elements referenced by integer keys.

See the descriptions for each of the map members tags such as [Map->Find], [Map->Insert], [Map->Keys], [Map->Values], etc. for details about how to manipulate elements of the map.

  • Syntax
  • Parameters
[Variable: 'myMap' = (Map)]

[Variable: 'myMap' = (Map: 'one'=1, 'two'=2, 'three'=3)]
Examples

See the Lasso 8 Language Guide for examples of how to use this tag.

Tag Link Map Category Data Type
Type Data Type Data Source Any
Support Preferred Version 5.0
Output Type Security
Implementation Internal Sets Lasso 6.0, Lasso 5.0

Please note that periodically LassoSoft will go through the notes and may incorporate information from them into the documentation. Any submission here gives LassoSoft a non-exclusive license and will be made available in various formats to the Lasso community.

LassoSoft Inc. > Home

 

 

©LassoSoft Inc 2015 | Web Development by Treefrog Inc | PrivacyLegal terms and Shipping | Contact LassoSoft