Adds one or more appointments to the control.

 

Syntax

rv = Send_Message(Ctrl, "OLE.AddAppts", Appts)

Parameters

ParameterDescription
ApptsList of appointments to be added.

Remarks

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

Example

// Add a new appointment (assuming the values were passed in) 
NewAppt = EntityID:@VM:NewApptID:@VM:NewStartTime:@VM:NewEndTime:@VM:NewBackColor:@VM:NewTextColor:@VM:NewTitle:@VM:NewDesc 
rv = Send_Message(@Window:".OLE_SCHEDULE", "OLE.AddAppts", NewAppt)

See Also

AppointmentList

  • No labels