Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The AddTimeBlocks method is useful when you need to add additional time blocks to an OLE Schedule that already has some. This is also more efficient than updating the TimeBlockList property, since that property will remove all time blocks and re-add them. To use this method, simply pass an array of time blocks. The array is in the exact same format as the TimeBlockList property, so see that documentation for more details.

...

Code Block
// Add a new time block
NewTimeBlock = EntityID:@VM:NewApptID:@VM:NewStartTime:@VM:NewEndTime:@VM:NewBackColor:@VM:NewTextColor:@VM:NewCaption
Send_Message(@Window:".OLE_SCHEDULE", "OLE.AddTimeBlocks", NewTimeBlock)

See Also

TimeBlockList