The current selection.

Usage

Set_Property(OLECtrlEntID, "OLE.Selection", StringValue)

Values

StringValue can be any string meeting the following format requirements:

Syntax: @FM delimited list of dates

Default: ""

Remarks

The Selection property gets and sets the currently selected dates. The value of this property is an @FM delimited array of dates, each one in OpenInsight's internal format. The array is always sorted chronologically.

To programmatically select dates, simply pass a new @FM delimited array of dates. When setting this property, the order of the dates does not matter. However, the next time you read the property, the dates will be sorted chronologically.

The MaxSelCount and NoncontinuousSelection properties are ignored when setting this property.

Example

// Get the current selection 
SelDates = Get_Property(@Window:".OLE_DATEPICKER", "OLE.Selection") 

// Set the selection to today's date 
Set_Property(@Window:".OLE_DATEPICKER", "OLE.Selection", Date()) 

// Clear the current selection 
Set_Property(@Window:".OLE_DATEPICKER", "OLE.Selection", "")

See Also

MaxSelCountNoncontinuousSelection

  • No labels