Xojo Documentation
Xojo Documentation
Home
Getting Started
Get Started with Xojo
QuickStarts
Tutorials
Pi Programming
More Guides
Resources
In-Depth Guides
User Guide
Language Reference
Resources
Release Notes
System Requirements
Deprecations
Videos
Feedback
About
Usage
Copyrights and Trademarks
Tools
What links here
Related changes
Special pages
Printable version
Permanent link
Page information
JSONItem.RemoveAt
From Xojo Documentation
Method
JSONItem
.RemoveAt
(Index As
Integer
)
New in 2019r2
Supported for all project types and targets.
Removes the child with the passed Index.
Examples
This example removes a value using its index:
Var
kids
As
New
JSONItem
// This object is manipulated like an array
kids
.
Add(
"John Jr"
)
kids
.
Add(
"Jamie"
)
kids
.
Add(
"Jack"
)
kids
.
Add(
"Josie"
)
kids
.
AddAt(
0
,
"Jonah"
)
kids
.
RemoveAt(
2
)
person
.
Value(
"Kids"
) = kids
Categories
:
New2019r2
Methods
API 2.0