XenoGuard Documentation

Create

Actions » Programming » Dictionary » Create  

The action Create makes a dictionary with either local or global context. This action is used in conjunction with other actions in the dictionary to manipulate the key-value pairs.


[-] Hide
  1. Open the Programming node in the Workspace Explorer.
  2. In the Dictionary node, select the Create action.

Parameters:

The action has the following input parameters:


name Description
Context The context to be used for the value.

Allowed Context Scope [Fixed]
Dictionary Name
The name to be given to the dictionary.

Allowed Context Scopes
[Fixed, Local, Global]
Allowed Context Types [Variable, Parameter, Enum]
Read Only
Sets a boolean value that prevents the content to be modified.

Allowed Context Type [Boolean]

Example 1 (Assigns a name for a created dictionary):

This example creates a local dictionary named Product with key-value pairs added to the collection. The result Value of the added items in the dictionary is then output via Message Box.

See other dictionary operations:

Add
Get
Get At
Count
Contains
Iterate
Remove
Remove At
Clear