Page History
...
Pos | Name | Type | Description | Default |
---|---|---|---|---|
<1> | Start | Integer | The selection start position | 1 |
<2> | End | Integer | The selection end position | 1 |
...
Unlike OI's SELECTION property, the EditSelection property is in the format Start:@FM:End whereas OI's SELECTION property is in the format Start:@FM:Length.
Example
Code Block |
---|
// Select all the text of the currently edited cell Set_Property(@Window:".OLE_EDITTABLE", "OLE.EditSelection", 1:@FM:0) // Remove the selections from the currently edited cell Set_Property(@Window:".OLE_EDITTABLE", "OLE.EditSelection", 0:@FM:1) // Select only the first 3 characters of the currently edited cell Set_Property(@Window:".OLE_EDITTABLE", "OLE.EditSelection", 1:@FM:3) // Select from the 3rd character to the end Set_Property(@Window:".OLE_EDITTABLE", "OLE.EditSelection", 3:@FM:0) // Get the selection of the currently edited cell Selection = Get_Property(@Window:".OLE_EDITTABLE", "OLE.EditSelection") |
...