Remove – PB Docs 2018

Remove

PowerScript function

Description

Removes a key. If more than one key with the same name exists, then
remove the first key. Notice that the IgnoreCase property (true by
default) determines whether the key name will be matched in a
case-sensitive manner.

Applies to

JSONPackage objects

Syntax

Argument

Description

objectname

Name of the JSONPackage object.

Key

A string specifying the key.

Return value

Integer. Returns 1 if it succeeds and -1 if an error occurs. If any
argument’s value is null, the method returns null.

Examples

This example removes the “d_employess” key:

See also

KeyCount

GetKey

ContainsKey


Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x