Lasso Soft Inc. > Home


[Map] creates a map data type with each of the name/value parameters of the tag as the initial elements of the map. The names and values of each name/value parameter can be of any data type.

  • Syntax
  • Parameters
[Map: 'Map Names'='Map_Values']

[Variable: 'VariableName'=(Map: 'Map Names'='Map_Values')]
Required Parameters
Map Names and Values The name/value parameters of the [Map] tag are copied as the starting elements of the map.

To create a map from integers to days of the week:

Use the [Map] tag with name/value pairs for each of the names of the days of the week as parameters. The following example stores a map which maps integers to the names of the days of the week in a variable named DaysOfTheWeek.

[Variable: 'DaysofTheWeek'=(Map: 0='Sunday', 1='Monday',
  2='Tuesday', 3='Wednesday', 4='Thursday', 5='Friday', 6='Saturday')]
Tag Link [Map] Category Array
Type Substitution Data Source Any
Support Preferred Version 5.0
Output Type Map Security None
Implementation LCAPI Sets Lasso 7.0, 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