====== SELECTION property ====== ==== Applies To ==== Combo box, edit box, edit line, edit table. ==== Description ==== With Get_Property, returns the starting position and length of selected text in the control. With Set_Property, sets the starting position and length of selected text in the control. ==== Usage ==== //selectionpos// = **Get_Property**(//objectname//, "**SELECTION**") //oldselectionpos// = **Set_Property**(//objectname//, "**SELECTION**", //newselectionpos//) ==== Remarks ==== Return value is //startpos//:@FM://length//, where //startpos// is the starting position, and //length// is the length of the selection. The length can be negative to select the text from the right to the left, leaving the insertion point at the starting position of the selected text. The starting position should be a valid position within the text needing selection. Use //startpos// = 1 and //length// = 65534 to select the entire text.