An appointment.

Usage

Set_Property(OLECtrlEntID, "OLE.Appt[ID]", Array)

Values

Array has the following structure:

PosNameTypeDescriptionDefault
<1>Entity IDTextID of the entity to which the appointment belongs""
<2>Start Date & TimeDecimalThe appointment's start date & time in OI internal format0.0
<3>End Date & TimeDecimalThe appointment's end date & time in OI internal format0.0
<4>Back ColorColorThe color of the appointment blockSelect
<5>Fore ColorColorThe color of the appointment's textSelectText
<6>TitleTextThe appointment's title text""
<7>DescriptionTextThe appointment's desciption""
<8>Lead TimeIntegerTime from start of appointment0
<9>Lead Back ColorColorThe color of the lead time, if any3DFace
<10>Lead Text ColorColorThe color of the lead time's caption and border3DShadow
<11>Lead Time CaptionTextThe caption to appear in the center of the lead time area"Lead Time"
<12>Trail TimeIntegerTime from end of appointment0
<13>Trail Back ColorColorThe color of the trail time, if any3DFace
<14>Trail Text ColorColorThe color of the trail time's caption and border3DShadow
<15>Trail Time CaptionTextThe caption to appear in the center of the trail time area"Trail Time"
<16>Conflict Zone Start Date & TimeDecimalThe date and time where the conflict zone begins.0
<17>Conflict Zone End Date & TimeDecimalThe date and time where the conflict zone ends.0
<18>ClassTextA custom string that classifies this appointment according to the application's needs.""

Indices

IndexDescription
IDUnique ID of an existing appointment

Remarks

The Appt property is an appointment. You can use it to get the current information on an appointment or to update an appointment. The data is an @FM delimited list. See AppointmentList for more details.

Example

// Move the appointment to another entity 
Set_Property(@Window:".OLE_SCHEDULE", "OLE.Appt[":ApptID:"]", NewEntity) 

// Update an appointment's color 
Set_Property(@Window:".OLE_SCHEDULE", "OLE.Appt[":ApptID:"]", @FM:@FM:@FM:RGB(255, 0, 0)) 

// Get an appointment 
Appt = Get_Property(@Window:".OLE_SCHEDULE", "OLE.Appt[":ApptID:"]")

See Also

ApptLockedAppointmentListSelAppt

  • No labels