Adds one or more time blocks to the control.
Syntax
rv = Send_Message(Ctrl, "OLE.AddTimeBlocks", TimeBlocks)
Parameters
Parameter | Description |
---|---|
TimeBlocks | List of time blocks to be added. |
Remarks
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.
Example
// 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)