Get Drag Drop Data Function

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.


icon

Inputs/Outputs

  • cstr.png data name

    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
  • cstr.png type

    type is the data type of the drag data you want to retrieve.

  • cerrcodeclst.png error in

    error in describes error conditions that occur before this node runs. This input provides standard error in functionality.

  • istr.png data

    data is the drag data returned from LabVIEW. data can adapt to any data type.

  • ierrcodeclst.png error out

    error out contains error information. This output provides standard error out functionality.

  • Examples

    Refer to the following example files included with LabVIEW.

    • labview\examples\Structures\Event Structure\Drag and Drop - Passing Custom Drag Data.vi