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

ContainsPath – PB Docs 2022 – PowerBuilder Library

ContainsPath – PB Docs 2022

ContainsPath

PowerScript function

Description

Checks if the path exists.

Applies to

JSONParser
objects

Syntax

Argument

Description

objectname

The name of the JSONParser object whose path you want to
check.

ItemPath

A string whose value is the path of the item of
JsonArrayItem type. 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

Boolean. Returns true if the item path exists and false if an error
occurs. If any argument’s value is null, the method returns null.

Example 1

This example loads a JSON string into a JSONParser object and checks
if the specified path exists:

See also

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