AddBar

<< Click to Display Table of Contents >>

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

AddBar


 

Add a bar.

 


Syntax 1 (when "SERIES" is selected in the ChartType property)

AddBar(

         row,

         name,

         startTime,

         endTime

         [, barLayoutName]

         )

 


Parameters

 

row


Type:

Number


The zero-based index of the row to add the bar to.

 

name


Type:

character


The name of the bar.

 

startTime


Type:

time


The start time of the bar.

 

endTime


Type:

time


The closing time of the bar.

 

barLayoutName


Type:

character


Bar layout name.

 

Return Value



Type:

Boolean


FALSE - Failure. TRUE - Success.

 

 


Syntax 2 (when "ROTARY" is selected in the ChartType property)

AddBar(

         row,

         name,

         startDay,

         startHour

         startMin,

         startSec,

         endDay,

         endHour

         endMin,

         endSec

         [, barLayoutName]

         )

 


Parameters

 

row


Type:

Number


The zero-based index of the row to add the bar to.

 

name


Type:

character


The name of the bar.

 

startDay


Type:

time


Bar start time - number of days.

 

startHour


Type:

time


Bar start time - hour.

 

startMin


Type:

time


The start time-minute of the bar.

 

startSec


Type:

time


Bar start time - seconds.

 

endDay


Type:

time


Bar end time-number of days.

 

endHour


Type:

time


Bar end time - hour.

 

endMin


Type:

time


End hour-minute of the bar.

 

endSec


Type:

time


End time of the bar - seconds.

 

barLayoutName


Type:

character


Bar layout name.

 

Return Value



Type:

Boolean


FALSE - Failure. TRUE - Success.

 

 

 


reference

 

DelBar

ClearBar

GetBarCount

SearchBarId

GetBarProperty

SetBarProperty