Returns the index of the selected element in an Organization Chart control.
// Gets the subscript of selected element in an Organization Chart control
NumSelectedElement is int
NumSelectedElement = OrgSelect(ORG_MyOrganizationChart)
IF NumSelectedElement <> -1 THEN
MyWindow.Title = ORG_MyOrganizationChart[NumSelectedElement].Title
END
Syntax
<Result> = OrgSelect(<Organization Chart control>)
<Result>: Integer
- Index of selected element in the Organization Chart control,
- -1 if no element is selected.
<Organization Chart control>: Control name
Name of Organization Chart control to use.