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

AddItemString – PB Docs 2018 – PowerBuilder Library

AddItemString – PB Docs 2018

AddItemString

PowerScript function

Description

Adds the child item of JsonStringItem type.

Applies to

JSONGenerator objects

Syntax

Argument

Description

objectname

The name of the JSONGenerator object in which you
want to add an item

ParentItemHandle

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

Key

A string whose value is the key of the child
item

Value

A string whose value is the value of the child
item

Return value

Long.

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

Example 1

This example creates an array item and then adds a string child
item:

Example 2

This example creates an object item and then adds a string child
item:

See also

AddItemArray

AddItemBlob

AddItemBoolean

AddItemDate

AddItemDateTime

AddItemNull

AddItemNumber

AddItemObject

AddItemTime


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