CT SET DATE SCALE

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

version 1


CT SET DATE SCALE (area; object; minAuto; maxAuto; majIncrAuto; minIncrAuto; minimum; maximum; majIncrType; majorIncr; minIncrType; minorIncr)

ParameterTypeDescription
areaLongint4D Chart object
objectLongintObject ID
minAutoIntegerUse default minimum?
-1 = No change
0 = No
1 = Yes
maxAutoIntegerUse default maximum?
-1 = No change
0 = No
1 = Yes
majIncrAutoIntegerUse default major increment?
-1 = No change
0 = No
1 = Yes
minIncrAutoIntegerUse default minor increment?
-1 = No change
0 = No
1 = Yes
minimumDateMinimum value
maximumDateMaximum value
majIncrTypeIntegerUse default major increment type?
-1 = No change
1 = Days
2 = Weeks
3 = Months
4 = Years
majorIncrIntegerMajor increment
minIncrTypeIntegerUse default minor increment type?
-1 = No change
1 = Days
2 = Weeks
3 = Months
4 = Years
minorIncrIntegerMinor increment

Description

Use CT SET DATE SCALE to use the default values or to set alternative values for the Values axis scale.

CT SET DATE SCALE is used when the values are dates.

minAuto and maxAuto specify whether to use the default minimum and maximum values.

majIncrAuto and minIncrAuto specify whether to use the default major and minor increments.

minimum and maximum are the alternative minimum and maximum values.

majIncrType and minIncrType are codes for the units in which the majorIncr and minorIncr parameters are specified.

majorIncr and minorIncr are the alternative major and minor increments.

Example

This example creates a chart from the database and sets the scale values.

   ARRAY INTEGER(aYFields;2)
   aYFields{1}:=2
   aYFields{2}:=3
   $ChartID:=CT Chart selection (Area;2;1;1;Table(->[Customer]); Field(->[Customer]Customer Type);aYFields)
   CT SET DATE SCALE (Area;$ChartID;0;0;0;0;0;!01/01/90!;!12/30/95!;4;1;3;1)

See Also

CT GET DATE SCALE, CT GET REAL SCALE, CT SET REAL SCALE.


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