Lingo Dictionary > A-C > addAt |
![]() ![]() ![]() |
addAt
Syntax
list.AddAt(
position
,
value
)
addAt
list
,
position
,
value
Description
List command; for linear lists only, adds a value specified by value
to a list at the position specified by position
.
This command returns an error when used with a property list.
Example
This statement adds the value 8 to the fourth position in the list named bids
, which is [3, 2, 4, 5, 6, 7]:
bids = [3, 2, 4, 5, 6, 7] bids.addAt(4,8)
The resulting value of bids
is [3, 2, 4, 8, 5, 6, 7].
![]() ![]() ![]() |