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

SetValueDateTime – PB Docs 2022 – PowerBuilder Library

SetValueDateTime – PB Docs 2022

SetValueDateTime

Description

Sets the datetime value for a key. If the key does not exist, then
create the key and set its value. If the key already exists, then
overwrite the value of this key. If more than one key with the same name
already exists, then overwrite the value of the first key. Notice that the
IgnoreCase property (true by default) determines whether the key name will
be matched in a case-sensitive manner.

Applies to

JSONPackage

Syntax

Argument

Description

objectname

The name of the JSONPackage object.

Key

A string specifying the key name.

Value

A datetime specifying the key value.

Flag

A boolean whose value is the type of the child
item.

True — JsonNumberItem type. A JsonNumberItem type value
is a UTC timestamp converted from the local time using the local
timezone.

False — JsonStringItem type. A JsonStringItem type value
is a string converted from the local time directly (no timezone
conversion).

Return value

Integer.

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

Examples

This example sets the value of the birthday key and the createdate
key in the JSON string.

See also

GetValueDateTime

SetValueBlob

SetValueBoolean

SetValueByDataWindow

SetValueDate

SetValueNumber

SetValueString

SetValueTime


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