SetTimeRange

<< Click to Display Table of Contents >>

Manual > Control Reference > Data > Gantt chart control > Method >

SetTimeRange


 

Set the start and end dates and times for the time axis (X axis). (Only when "SERIES" is selected in the ChartType property.)

 


Syntax 1

SetTimeRange(

         startTime,

         endTime

         )

 


Parameters

 

startTime


Type:

time


Start date and time.

 

endTime


Type:

time


End date and time.

 

Return Value



Type:

Boolean


FALSE - Failure. TRUE - Success.

 

 


Syntax 2

SetTimeRange(

         baseTime,                

         day,

         hour,

         min,

         sec

         [, pos="LEFT"]

         )

 


Parameters

 

baseTime


Type:

time


The reference date and time.

 

day


Type:

Number


Number of days.

 

hour


Type:

Number


time.

 

min


Type:

Number


minutes.

 

sec


Type:

Number


Seconds.

 

pos


Type:

character


What position should the reference date and time be placed in?

LEFT - left edge

CENTER - Center

RIGHT - right edge

 

 

Return Value



Type:

Boolean


FALSE - Failure. TRUE - Success.

 

 


reference

 

SetCursorTime( when "SERIES" is selected in the ChartType property )

SetCursorTime( when "ROTARY" is selected in the ChartType property )

GetCursorTime

GetTimeRange

SetTimeSpan( when "SERIES" is selected in the ChartType property )

SetTimeSpan( when "ROTARY" is selected in the ChartType property )

ScrollTime