Description
Loads the RibbonBar content from a JSON file. ECMA-404 JSON standard is supported.
Applies to
Syntax
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 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:
Integer li_return li_return = rbb_1.ImportFromJSONFile ("Export1.json")
See also