OLEDropEffects Property

Applies To   See Also

Specifies the type of drop operations an OLE drop target supports. Available at design time and run time.

Syntax

Object.OLEDropEffects[= nDropEffect]

Settings

nDropEffect

Specifies the type of drop operations an OLE drop target supports. The following table lists the values for nDropEffect with a description of each.

nDropEffect Foxpro.h constant Description
0 DROPEFFECT_NONE Drop target does not accept the data as a drop target.
1 DROPEFFECT_COPY Data can be copied to the drop target.
2 DROPEFFECT_MOVE Data can be moved to the drop target.
4 DROPEFFECT_LINK Data can be linked to the drop target.

A drop can support multiple drop operations by adding multiple values together for nDropEffect. For example, if nDropEffect is 3, the drop target supports both copy and move drop operations (3 = 1 (copy) + 2 (move)).

Remarks

OLEDropEffects is a drop target property, and should be set in the OLEDragOver event.