ImportFromXMLFile

Description

Loads the RibbonBar content from an XML file. XML version 1.0 is supported.

Applies to

RibbonBar controls

Syntax

controlname.ImportFromXMLFile ( FileName )

Argument

Description

controlname

The name of the RibbonBar control.

FileName

A string whose value is the full name of the XML 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) XML syntax error; 2) XML encode error; 3) XML data is null.

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

Examples

This example loads an XML file to create a ribbon bar:

Integer li_return
li_return = rbb_1.ImportFromXMLFile ("Export2.xml")

See also

ExportJSON

ExportXML

ExportToJSONFile

ExportToXMLFile

ImportJSON

ImportXML

ImportFromJSONFile