Skip to content

Latest commit

 

History

History
53 lines (39 loc) · 1.45 KB

jsonarray-set-integer-string-method.md

File metadata and controls

53 lines (39 loc) · 1.45 KB
title description ms.author ms.date ms.topic author ms.reviewer
JsonArray.Set(Integer, Text) Method
Replaces the value at the given index with a new value.
solsen
05/14/2024
reference
SusanneWindfeldPedersen
solsen

JsonArray.Set(Integer, Text) Method

Version: Available or changed with runtime version 1.0.

Replaces the value at the given index with a new value.

Syntax

[Ok := ]  JsonArray.Set(Index: Integer, Result: Text)

Parameters

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

Index
 Type: Integer

Result
 Type: Text

Return Value

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

Remarks

Note

The JsonArray is 0-based by design.

See Also

JsonArray Data Type
Get Started with AL
Developing Extensions