"removeRange"

Deletes a specific time range (time bar).

Synopsis

shape.removeRange(int idx);

Parameter

Parameter Description
shape Name of the object.
idx The index of the time range which should be deleted. Starts with 0.

Description

Deletes a specific time range (time bar).

After deleting a time range the following next time ranges will be moved up by one position (index will be decremented by one).

Example

In this example all existing time ranges will be deleted without using "removeAllRanges".

main()
{
  int iRanges = Scheduler_ewo1.numRanges();
  for(int i = 0 ; i <= iRanges -1 ; i++)
 {
   this.removeRange(i);
 }
}

Assignment

Scheduler.ewo