ImportFromJSONFile
PowerScript function
Description
Loads the RibbonBar content from a JSON file. ECMA-404 JSON standard
is supported.
Applies to
RibbonBar controls
Syntax
|
1 |
controlname.ImportFromJSONFile ( FileName ) |
|
Argument |
Description |
|---|---|
|
controlname |
The name of the RibbonBar control. |
|
FileName |
A string whose value is the full name of the JSON file |
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:
|
1 2 |
Integer li_return li_return = rbb_1.ImportFromJSONFile ("Export1.json") |
See also
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments
Oldest