DragItem.TextAvailable

From Xojo Documentation

Read-Only Property (As Boolean )
BooleanValue = aDragItem.TextAvailable

Supported for all project types and targets.

If True, the Text property contains text.

Sample Code

The object that is receiving dragged text needs to be capable of receiving the text. This is enabled by calling AcceptTextDrop in the Open event. In the DropObject event, you can test the TextAvailable property prior to dropping the text. For example:

Do
If obj.TextAvailable Then
Me.AddRow(obj.Text)
End If
Loop Until Not obj.NextItem