GetChildKey – PB Docs 2021

GetChildKey

PowerScript function

Description

Gets the key name of the child item in a JSON parser object.

Applies to

JSONParser
objects

Syntax

Argument

Description

objectname

The name of the JSONParser object whose key name you want
to obtain.

ParentItemHandle

A long whose value is the handle of the parent item of
JsonObjectItem type.

ParentItemPath

A string whose value is the path of the parent item of
JsonObjectItem type. If a key name contains “/”, use the escape
character “~~/” to replace “/”.

Index

A long whose value is the index of the child item.

Return value

String.

Returns the key name of the child item if it succeeds and empty
string (“”) if an error occurs. If any argument’s value is null, the
method returns null.

Examples

This example gets the key of the child item according to the parent
item handle and the child item index:

This example gets the key of the child item according to the parent
item path and the child item index:

See also

GetChildCount

GetChildItem


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