CT Get chart type

4D - Documentation   Français   English   German   4D Chart, Command Theme List   4D Chart, Command Alphabetical List   Back   Previous   Next

version 1


CT Get chart type (area; object) Integer

ParameterTypeDescription
areaLongint4D Chart area
objectLongintObject ID
Function resultIntegerChart type

Description

The CT Get chart type command returns the type of the chart specified by area and object.

The following table lists the codes for the chart types:

CodeChart Type
1Area
2Column
3Picture
4Line
5Scatter
6Pie
7Polar
82D XY
1003D Column
1013D Line
1023D Area
1033D Surface
1043D Triangle
1053D Spike

Example

In this example, CT Get chart type is used to get the chart type of the chart specified by $ChartID. If it is not a column chart, CT SET CHART TYPE changes it to a column chart.

   If (CT Get chart type (Area;$ChartID)#2)
      CT SET CHART TYPE (Area;$ChartID;2)
   End if 

See Also

CT SET CHART TYPE.


4D - Documentation   Français   English   German   4D Chart, Command Theme List   4D Chart, Command Alphabetical List   Back   Previous   Next