Programmer Guide/Command Reference/DELETE: Difference between revisions

From STX Wiki
Jump to navigationJump to search
m (1 revision: Initial import)
Line 1: Line 1:
{{DISPLAYTITLE:{{SUBPAGENAME}}}}
{{DISPLAYTITLE:{{SUBPAGENAME}}}}
==DELETE==
DELETE [ /Variables ] [ /Silent ] [ /- ] <var>itemname1</var> [ <var>itemname2 ...</var> ]


<code>DELETE <var>itemname1</var> [ <var>itemname2 ...</var> ] [ /S ]</code>
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.


Delete the specified shell item <var>itemname</var>. Some types of shell items (e.g. SPU items) cannot be deleted while they are active. 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.
;<var>itemname</var> :The name of the shell item to delete.
;<var>/Silent</var> :If specified, <code>DELETE</code> will generate a warning rather than an error if arguments are missing or it is unable delete the arguments.
;<var>/Variables</var>: Indicates that the <var>itemname1</var>...<var>itemnamen</var>  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.


;<var>itemname</var>
// create a table item called "hugoItem"
 
#hugo := new table hugoItem    // now, "#hugo" will contain the string "hugoItem"
:The name of the shell item to delete.
delete /Var #hugo                      // table item "hugoItem" will be deleted *and* "#hugo" will be cleared
 
<!-- C.G. 15.3.2011 -->
;<var>/S</var>
 
:If specified, <code>DELETE</code> will generate a warning rather than an error if arguments are missing or it is unable delete the arguments.
 
;<var>/V</var>
 
:If specified, the itemname is interpreted as the name of a variable, The contents of the variable are assumed to be shell items, and they are deleted. The variable is then reset to empty.
 
<pre>
// create a table item called "hugoItem"
#hugo := new table hugoItem    // now, "#hugo" will contain the string "hugoItem"
delete /Var #hugo                      // table item "hugoItem" will be deleted *and* "#hugo" will be cleared
</pre>

Revision as of 13:28, 15 March 2011

DELETE [ /Variables ] [ /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.
/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"
#hugo := new table hugoItem     // now, "#hugo" will contain the string "hugoItem"
delete /Var #hugo                       // table item "hugoItem" will be deleted *and* "#hugo" will be cleared

Navigation menu

Personal tools