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

ImportFromJSONFile – PB Docs 2019 – PowerBuilder Library

ImportFromJSONFile – PB Docs 2019

ImportFromJSONFile

PowerScript function

Description

Loads the RibbonBar content from a JSON file. ECMA-404 JSON standard
is supported.

Applies to

RibbonBar controls

Syntax

Argument

Description

controlname

The name of the RibbonBar control.

FileName

A string whose value is the full name of the JSON file
that contains the RibbonBar content.

Return value

Integer.

1 – Successful.

-1 – An internal error occurs.

-2 – The library fails to load.

-3 – The specified file does not exist.

-4 – The specified file extension is wrong.

-5 – Any of the following: 1) JSON syntax error; 2) JSON encode
error; 3) JSON data is null.

If any argument’s value is null, returns null.

Examples

This example loads a JSON file to create the ribbon bar:

See also

ExportJSON

ExportXML

ExportToJSONFile

ExportToXMLFile

ImportJSON

ImportXML

ImportFromXMLFile


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