Programmer Guide/Command Reference/DELETE: Difference between revisions
From STX Wiki
Jump to navigationJump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
{{DISPLAYTITLE:{{SUBPAGENAME}}}} | {{DISPLAYTITLE:{{SUBPAGENAME}}}} | ||
DELETE [ [[Programmer_Guide/ | DELETE [ [[Programmer_Guide/Command_Reference_Options/Variables|/Variables]] ] [/unprotect] [ [[Programmer_Guide/Command_Reference_Options/Silent|/Silent]] ] [ [[Programmer_Guide/Command_Reference_Options/-|/-]] ] <var>itemname1</var> [ <var>itemname2...</var> ] | ||
The <code>DELETE</code> command deletes the specified shell items <var>itemname1</var>, <var>itemname2</var>, and so on. Some types of shell items (e.g. SPU items) cannot be deleted while they are active, causing an error to be emitted. If a display item is deleted, all items contained in the display are removed too (i.e. graphs and dialogs items). If a dialog item contained in a 'dialog only' display item is deleted, the display item is also removed. If a DDE-conversation item (DDEConv) is removed, the conversation is ended before the item is deleted. | The <code>DELETE</code> command deletes the specified shell items <var>itemname1</var>, <var>itemname2</var>, and so on. Some types of shell items (e.g. SPU items) cannot be deleted while they are active, causing an error to be emitted. If a display item is deleted, all items contained in the display are removed too (i.e. graphs and dialogs items). If a dialog item contained in a 'dialog only' display item is deleted, the display item is also removed. If a DDE-conversation item (DDEConv) is removed, the conversation is ended before the item is deleted. |
Revision as of 17:31, 22 March 2011
DELETE [ /Variables ] [/unprotect] [ /Silent ] [ /- ] itemname1 [ itemname2... ]
The DELETE
command deletes the specified shell items itemname1, itemname2, and so on. Some types of shell items (e.g. SPU items) cannot be deleted while they are active, causing an error to be emitted. If a display item is deleted, all items contained in the display are removed too (i.e. graphs and dialogs items). If a dialog item contained in a 'dialog only' display item is deleted, the display item is also removed. If a DDE-conversation item (DDEConv) is removed, the conversation is ended before the item is deleted.
- itemname
- The name of the shell item to delete.
/Silent
- If specified,
DELETE
will generate a warning rather than an error if arguments are missing or it is unable delete the arguments. /unprotect
(case-sensitive!)- If specified,
DELETE
will remove any protection from the respective item before deleting. This is the only way of deleting a protected shell item. Note that, unlike most other options, the/unprotect
option is case-sensitive meaning that you have to use the lower-case letter u. /Variables
- Indicates that the itemname1...itemnamen arguments are variable names. In this case, each itemname is interpreted as the name of a shell item. The respective shell items are deleted, and the variables are then reset to empty.
// create a table item called "hugoItem", and store // this name in a variable called "#hugo" #hugo := new table hugoItem // table item "hugoItem" will be deleted *and* "#hugo" will be cleared delete /Var #hugo