Compartir a través de


OLESetData Event

Occurs on a drag source when a drop target calls the GetData method.

PROCEDURE Object.OLESetData
LPARAMETERS oDataObject, eFormat

Return Value

  • oDataObject
    An object reference to OLE drag-and-drop DataObject, used with the SetData method to place data in the DataObject.

  • eFormat
    A numeric or character value that indicates the format of the data the GetData method requests. The drag source uses this value to determine the format of the data to place in the DataObject. See the GetData method for a table that lists the numeric or character values for each data format and a description of each format.

Remarks

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

OLESetData is a drag source event. Including NODEFAULT has no effect on the behavior of this method.

The OLESetData event occurs when the GetData method is executed. Within the OLESetData event you can place data in the DataObject in the specified format with the SetData method. This technique is called "delay rendering" and allows you to put data on the DataObject only when it is requested.

See Also

Reference

GetData Method

OLE Drag-and-Drop

OLESetData Event

SetData Method

NODEFAULT Command

Other Resources

Events (Visual FoxPro)