Connection Information

To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.

Connection Type

GetItemByPath – PB Docs 2019 – PowerBuilder Library

GetItemByPath – PB Docs 2019

GetItemByPath

PowerScript function

Description

Gets the handle of the item.

Applies to

JSONParser
objects
and JSONGenerator objects

Syntax

Argument

Description

objectname

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

ItemPath

A string specifying the path of the item. If there is a
multi-dimensional array, use the number to indicate the order of
the array elements. If a key name contains “/”, use the escape
character “~~/” to replace “/”.

Return value

Long.

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

Example 1

This example gets the item handle from a JSONParser object according
to the item path from a one-dimensional array:

Example 2

This example gets the item handle from a JSONParser object according
to the item path from a two-dimensional array. The number indicates the
order of the array.

Example 3

This example determines the item handle in a JSONGenerator object
according to the item path and then adds three child items:

See also

GetItemArray

GetItemArrayJSONString

GetItemBlob

GetItemBoolean

GetItemDate

GetItemDateTime

GetItemNumber

GetItemObject

GetItemObjectJSONString

GetItemString

GetItemTime

GetItemType

GetNumberType

GetPathByItem
(JSONGenerator)


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