dictionaryassignmentscode(

DICTIONARY
)


The dictionaryassignmentscode( function returns code that can be used to take the values in a dictionary (see Data Dictionaries) and assign them to fields or variables based on the dictionary keys.


Parameters

This function has one parameter:

dictionary – is the name of the field or variable that contains the dictionary (must contain binary data).


Description

This function returns code that can be used to take the values in a dictionary (see Data Dictionaries) and assign them to fields or variables based on the dictionary keys. The output of this function can be used directly in an execute statement as a series of assignments.

This function is part of a suite that manipulates items in a key/value dictionary. This is not a language dictionary for spelling checks, but a dictionary that allows you to define words (names) and their values (definitions).

For example, this formula builds a dictionary and then dumps it as code.

dictionaryassignmentscode(initializedictionary("Color Option","Blue","Shape","Oval","Total Depth",3))

The result of this formula will be:

«Color Option»="Blue"
Shape="Oval"
«Total Depth»=3

Other functions that are related to this function are:


See Also


History

VersionStatusNotes
10.2UpdatedNew in this version.