WoW:API DeleteCursorItem: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
m (ClearCursor is more reliable since it won't move the item to the backpack and won't fail if the backpack is full.)
No edit summary
Line 1: Line 1:
{{wowapi}}
{{wowapi}}
Destroys the item currently held by the cursor.
Destroys the item currently held by the cursor.
DeleteCursorItem();


'''This does not deselect the item, this destroys it.''' Try [[API ClearCursor|ClearCursor]] to deselect the item.
== Details ==
 
* '''This does not deselect the item, this destroys it.''' Use {{api|ClearCursor}} to drop an item from the cursor without destroying it.
No return value.

Revision as of 23:57, 17 March 2010

WoW API < DeleteCursorItem

Destroys the item currently held by the cursor.

DeleteCursorItem();

Details

  • This does not deselect the item, this destroys it. Use ClearCursor to drop an item from the cursor without destroying it.