Get Drag Drop Data Function

Owning Palette: Application Control VIs and Functions

Requires: Base Development System

Returns drag data from the current drag and drop operation. Only use this function when it is necessary to access the drag data, not just to examine the data type. If a drag and drop operation is not in progress, LabVIEW returns an error. If the data requested is unavailable, LabVIEW returns an error.

Example

 Add to the block diagram  Find on the palette
data name is the user-defined name of the drag data that you want to retrieve. You also can use the built-in LabVIEW data types.
LabVIEW Data Type Definition
LV_TEXT String
LV_TREE_TAG String
LV_TREE_ITEMS Array of a cluster that contains an array of strings in the item you are dragging (in order from left to right), an integer that represents the glyph index associated with the item from which you are dragging data, and an integer that represents the indent level of the item from which you are dragging.
LV_LISTBOX_ITEMS Array of a cluster that contains an array of strings in the item you are dragging (in order from left to right) and an integer that represents the glyph index associated with the item from which you are dragging data.
LV_PATH Path
type is the data type of the drag data you want to retrieve.
error in describes error conditions that occur before this node runs. This input provides standard error in functionality.
data is the drag data returned from LabVIEW. data can adapt to any data type.
error out contains error information. This output provides standard error out functionality.

Example

Refer to the Drag and Drop - Passing Custom Drag Data VI in the labview\examples\Structures\Event Structure directory for an example of using the Get Drag Drop Data function.

 Open example  Find related examples