Dictionary.Get(TKey, var TValue) Method

Version: Available or changed with runtime version 1.0.

Gets the value associated with the specified key.

Syntax

[Ok := ]  Dictionary.Get(Key: TKey, var Value: TValue)

Parameters

Dictionary
 Type: Dictionary
An instance of the Dictionary data type.

Key
 Type: TKey
The key of the value to get. If the specified key is not found an error will be reported.

Value
 Type: TValue
The value associated with the specified key.

Return Value

[Optional] Ok
 Type: Boolean
true if the operation was successful; otherwise false. If you omit this optional return value and the operation does not execute successfully, a runtime error will occur.

See Also

Dictionary Data Type
Get Started with AL
Developing Extensions