DragItem.PictureAvailable

From Xojo Documentation

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

Supported for all project types and targets.

If True, the Picture property contains a picture.

Sample Code

The following code is in the DropObject event handler of an ImageWell. It tests whether a Picture has been dragged and, if so, assigns the dragged picture to the Image property of the ImageWell.

If obj.PictureAvailable Then
Me.Image = obj.Picture
ElseIf obj.FolderItemAvailable then
Me.Image = Picture.Open(obj.FolderItem)
End If