JavaScript Editor js editor     Web development 



Main Page

Specifies how a drop operation is managed. Available at run time and read-only at design time.

Object.OLEDropHasData[= nDropEffect]

Return Value

nDropEffect


Specifies how the drop operation is managed. The following table lists the values for nDropEffect with a description of each.

nDropEffect Foxpro.h constant Description

–1

DROPHASDATA_VFPDETERMINE

Default. Visual FoxPro automatically determines if the DataObject contains data in a format that can be dropped on the drop target.

If the DataObject contains data in a proper format for the drop target, the data is dropped on the drop target. Visual FoxPro handles the mouse pointer and notification of the drag source.

If the data isn't in the proper format for the drop target, Visual FoxPro displays the No Drop mouse pointer, the drop operation is canceled, and the drag source is notified that the drop operation was canceled.

0

DROPHASDATA_NOTUSEFUL

The DataObject does not contain data in a format that can be dropped on the drop target, and the No Drop mouse pointer is displayed.

1

DROPHASDATA_USEFUL

The DataObject contains data in a format that can be dropped on the drop target.

Remarks

Applies To: CheckBox | ComboBox | CommandButton | CommandGroup | Container Object | Control Object | EditBox | Form | Grid | Image | Label | Line | ListBox | OptionButton | OptionGroup | Page | PageFrame | ProjectHook Object | Shape | Spinner | TextBox | ToolBar

OLEDropHasData is a drop target property and should be set in the OLEDragOver event. Use GetFormat in the OLEDragOver event to determine if the DataObject contains data in the proper format for the drop target. If the data is in the proper format for the drop target, set OLEDropHasData to 1.

See Also



JavaScript Editor js editor     Web development