The current selection.

Usage

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

Values

StringValue can be any string meeting the following format requirements:

Syntax: @FM delimited list of dates

Default: ""

Remarks

The SelPos property gets and sets the current selection. The value of this property is an @FM delimited array of dates. Each date is in OpenInsight's internal format, and the array is 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.SelPos")

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

* Clear the current selection
Set_Property(@Window:".OLE_DATEPICKER", "OLE.SelPos", "")

See Also

MaxSelCountNoncontinuousSelection

  • No labels