"cloneDay"

Copies the time bar of a specific day to another day.

Synopsis

shape.cloneDay(int from, int to);

Parameters

Parameter Description
shape Name of the object. Scheduler ewo.
from The day from which the time bar is copied. Starts from 1 = Monday.
start The day to which the time bar is copied. Starts from 1 = Monday.

Description

Copies the time bar of a specific day to another day.

Example

In the following example a blue time bar on the 27th of March 2007 with the start time 15:10 and end time 16:12 is added to the scheduler ewo. The texts "Test" and data "Data" are set for the bar. The index of the bar is 1.

The added time bar is then copied from Monday to Tuesday using the cloneDay function.

main()
{
  time t1, t2;
  t1=makeTime(2007,3,27,15,10);
  t2= makeTime(2007,3,27,16,12);
  this.addRange(1,t1,t2, "blue","Test","Data",1);
  this.cloneDay(1,2);
}

Assignment

Scheduler ewo