Unit 'fpjson' Package
[Overview][Constants][Types][Classes][Procedures and functions][Index] [#fcl]

TJSONObject.Delete

Delete an element from the list by index.

Declaration

Source position: fpjson.pp line 748

public procedure TJSONObject.Delete(

  Index: Integer

);

procedure TJSONObject.Delete(

  const AName: string

);

Arguments

Index

  

Index of element in Items to delete.

Arguments

AName

  

Name of element to delete.

Description

Delete deletes the element with given Index or AName from the list. The TJSONData element is freed. If a non-existing name is specified, no value is deleted.

Errors

If an invalid index is passed, an exception is raised.

See also

Clear

  

Clear the object.

Add

  

Add a name, value to the object.

Extract

  

Extract an element from the object.

Exchange


Documentation generated on: Nov 22 2024