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

GetNumberType – PB Docs 2022 – PowerBuilder Library

GetNumberType – PB Docs 2022

GetNumberType

PowerScript function

Description

Gets the type of the number item.

Applies to

JSONParser
objects

Syntax

Argument

Description

objectname

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

ItemHandle

A long specifying the item handle which is JsonNumberItem
type.

ParentItemHandle

A long specifying the parent item handle which is
JsonObjectItem type.

Key

A string specifying the key of the child item which is
JsonNumberItem type.

ItemPath

A string specifying the item path which is JsonNumberItem
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

JsonNumberType.

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

The JsonNumberType enumerated values are:

  • JsonNumber! — Type of the JSON valid number.

  • JsonNaN! — Type of the JSON invalid number.

  • JsonPositiveInfinity! — Type of the JSON positive
    infinity.

  • JsonNegativeInfinity! — Type of the JSON negative
    infinity.

Example 1

This example determines the type of number values according to the
item handle:

Example 2

This example determines the type of number values according to the
parent item and key name:

Example 3

This example determines the type of number values according to the
item path:

See also

GetItemArray

GetItemArrayJSONString

GetItemBlob

GetItemBoolean

GetItemByPath

GetItemDate

GetItemDateTime

GetItemDecimal

GetItemNumber

GetItemObject

GetItemObjectJSONString

GetItemString

GetItemTime

GetItemType


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