Table of Contents

DRAGTEXTSELECTION Property

Applies To

Drag Source Editline, Editbox and Edittable controls.

Description

Contains the starting point and length of the selected text used for a drag operation.

Usage

dragTextSel = Get_Property(dragSource,"DRAGTEXTSELECTION")

Returns

An @fm-delimited array of the starting position and the length.

See Also

DRAGSOURCE property

Example

Declare function Get_Property

 

* retrieve the DRAGTEXTSELECTION property and display data in a message

 

dragSource = Get_Property("SYSTEM","DRAGSOURCE")

dragTextSel = Get_Property(dragSource,"DRAGTEXTSELECTION")

swap @fm with ',' in dragTextSel

msgText = "The data starts in position ":dragTextSel<1>: " and is "

msgText:= dragTextSel<2> :" characters long."

msg(@window,msgText)