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.)
m (Move page script moved page API DeleteCursorItem to API DeleteCursorItem without leaving a redirect)
 
(One intermediate revision by one other user not shown)
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.

Latest revision as of 04:45, 15 August 2023

WoW API < DeleteCursorItem

Destroys the item currently held by the cursor.

DeleteCursorItem();

Details[edit]

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