GetChildItem – PB Docs 2021

GetChildItem

PowerScript function

Description

Gets the handle of the child item in a JSON parser object.

Applies to

JSONParser
objects

Syntax

Argument

Description

objectname

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

ParentItemHandle

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

ParentItemPath

A string whose value is the path of the parent item of
JsonObjectItem or JsonArrayItem 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

Long.

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

Examples

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

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

See also

GetChildCount

GetChildKey


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