Skip to content

Latest commit

 

History

History
51 lines (41 loc) · 1.59 KB

dictionary-set-tkey-tvalue-tvalue-method.md

File metadata and controls

51 lines (41 loc) · 1.59 KB
title description ms.author ms.date ms.topic author ms.reviewer
Dictionary.Set(TKey, TValue, var TValue) Method
Sets the value associated with the specified key.
solsen
05/14/2024
reference
SusanneWindfeldPedersen
solsen

Dictionary.Set(TKey, TValue, var TValue) Method

Version: Available or changed with runtime version 1.0.

Sets the value associated with the specified key.

Syntax

[Replaced := ]  Dictionary.Set(Key: TKey, Value: TValue, var OldValue: TValue)

Parameters

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

Key
 Type: TKey
The key of the value to set.

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

OldValue
 Type: TValue
The value that was previously associated with the specified key.

Return Value

[Optional] Replaced
 Type: Boolean
true if the Dictionary contained a value associated with the given key that was replaced with the new value, otherwise false.

See Also

Dictionary Data Type
Get Started with AL
Developing Extensions