ImportXML
PowerScript function
Description
Loads the RibbonBar content from an XML string. XML version 1.0 is
supported.
Applies to
RibbonBar controls
Syntax
|
1 |
controlname.ImportXML ( Data ) |
|
Argument |
Description |
|---|---|
|
controlname |
The name of the RibbonBar control. |
|
Data |
An XML string that contains the RibbonBar content. |
Return value
Integer.
1 – Successful.
-1 – An internal error occurs.
-2 – The library fails to load.
-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 string to create the ribbon bar:
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
Integer li_return string ls_xml ls_xml = '<?xml version="1.0" encoding="utf-8" standalone="yes"?>& <RibbonBar Font="FaceName:Tahoma; TextSize:8" BuiltinTheme="0">& <RibbonItems>& <Categories>& <Category Text="MyCategory" Enabled="true" Visible="true">& <Panel Text="MyPanel" Enabled="true" Visible="true" PictureName="TabsSmall!">& <SmallButton Text="MySmallButton" Clicked="ue_ButtonClicked" PictureName="EmployeeSmall!"/>& </Panel>& </Category>& </Categories>& </RibbonItems>& </RibbonBar>' li_return = rbb_1.ImportXML(ls_xml) |
See also
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments
Oldest