OLEDragMode Property

Applies To   See Also

Specifies how a drag operation is initiated. Available at design time and run time.

Syntax

Object.OLEDragMode[= nValue]

Settings

nValue

Specifies how the control or object handles OLE drag operations. The following table lists the settings for nValue.

Setting Description
0 Manual (Default).

Visual FoxPro does not initiate the OLE drag operation when you attempt to drag data. You must call the OLEDrag method to begin the drag operation.

Setting OLEDragMode to 0 provides backward compatibility (no OLE drag support) for existing applications if you do not include additional drag operation coding.

1 Automatic

Visual FoxPro allows automatically initiates a drag operation when you attempt to drag data.


Remarks

OLEDragMode is a drag source property. If the DragMode property for a control or object is set to 1 – Automatic, the control or object cannot act as an OLE drag source. This provides backward compatibility for previous drag-and-drop support in earlier versions of Visual FoxPro.

Note that OLEDragMode property is read-only for the Grid control.