PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Using the OrgElement type (2nd syntax)
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Modifies an element in an Organization Chart control.
Example
// Syntax 1: Modifying the title only
Boss is int
Boss = OrgAdd(ORG_MyOrganizationChart, "Vince Boss", "big boss", "Goldbar.gif")

OrgModify(ORG_MyOrganizationChart, 1, "Tim C.", "CEO")
// Syntax 2: Modifying the element
ElementCEO is OrgElement
ElementCEO..Title = "Big Boss"
OrgAdd(ORG_EXECUTIVE, ElementCEO)

ElementCEO..Title="Tim C."
ElementCEO..Image = "Goldbar.gif"
OrgModify(ORG_EXECUTIVE, 1, ElementCEO)
Syntax

Modifying an element found in an Organization Chart control while specifying its characteristics Hide the details

OrgModify(<Organization Chart Control> , <Subscript> , <Title> [, <Content> [, <Image>]])
<Organization Chart Control>: Control name
Name of Organization Chart control where the element will be modified.
<Subscript>: Integer
Subscript of element to modify. This subscript was returned by OrgAdd.
<Title>: Character string (with quotes)
New element title.
<Content>: Optional character string (with quotes)
New element content.
If this parameter is not specified, the existing content will not be modified.
<Image>: Optional character string (with quotes)
New 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.
If this parameter is not specified, the existing image will not be modified.

Modifying an element found in an Organization Chart control (by using the OrgElement type) Hide the details

OrgModify(<Organization Chart Control> , <Subscript> , <Element>)
<Organization Chart Control>: Control name
Name of Organization Chart control where the element will be modified.
<Subscript>: Integer
Subscript of element to modify. This subscript was returned by OrgAdd.
<Element>: OrgElement variable
OrgElement variable describing the full characteristics of the element to modify.
Remarks

Using the OrgElement type (2nd syntax)

The element whose subscript is equal to <Subscript> is replaced by <Element>. In this case, OrgModify is equivalent to the following syntax:
OrganizationChart_Control[Subscript] = Element
Components
WINDEVReports and Queries wd230obj.dll
Minimum required version
  • Version 17
This page is also available for…
Comments
Click [Add] to post a comment