|
|
|
|
|
OrgAdd (Function) In french: OrgaAjoute Adds a new root element into an Organization Chart control. If the Organization Chart control is linked to a data source, the element is also added into the data source.
Boss is int
Boss = OrgAdd(ORG_MyOrganizationChart, "Vince Boss", "Big boss", "Goldbar.gif")
ORGA_MyOrganizationChart[Boss].BackgroundColor = iLightYellow
ElementCEO is OrgElement
ElementCEO.Title = "Big Boss"
OrgAdd(ORG_EXECUTIVE, ElementCEO)
Element2 is OrgElement
Element2.Title = "Production"
OrgAddChild(ORG_EXECUTIVE, 1, Element2)
Element3 is OrgElement
Element3.Title = "Sales"
OrgAddChild(ORG_EXECUTIVE, 1, Element3)
Syntax
Adding a "root" element while specifying its characteristics Hide the details
<Result> = OrgAdd(<Organization Chart control> , <Title> [, <Content> [, <Image>]])
<Result>: Integer - Index of the added element.
- -1 if an error occurred. ErrorInfo is used to identify the error.
<Organization Chart control>: Control name Name of Organization Chart control into which the element will be added. <Title>: Character string Title of element. <Content>: Optional character string Content of element. <Image>: Optional character string Image associated with the element. This image is displayed on the left of element title. This parameter corresponds to the name and to the full (or relative) path of image. A UNC path can be used.
Adding a root element by using the OrgElement type Hide the details
<Result> = OrgAdd(<Organization Chart control> , <Element>)
<Result>: Integer - Index of the added element.
- -1 if an error occurred. ErrorInfo is used to identify the error.
<Organization Chart control>: Control name Name of Organization Chart control into which the element will be added. <Element>: OrgElement variable Name of the OrgElement variable that describes the characteristics of the element to add.
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|