Programmer Guide/Command Reference/NEW: Difference between revisions

From STX Wiki
Jump to navigationJump to search
No edit summary
m (Text replace - ">" to ">")
Line 1: Line 1:
{{DISPLAYTITLE:{{SUBPAGENAME}}}}
{{DISPLAYTITLE:{{SUBPAGENAME}}}}


  NEW <var>itemtype</var> <var>itemname</var> [ [[Programmer_Guide/Command_Reference_Options/Silent|/I]] ] [ /U|/u ] [ /G ] [ /Z ] [ <var>createargs</var> [ <var>createopts</var> ] ]
  NEW <var&gt;itemtype</var&gt; <var&gt;itemname</var&gt; [ [[Programmer_Guide/Command_Reference_Options/Silent|/I]] ] [ /U|/u ] [ /G ] [ /Z ] [ <var&gt;createargs</var&gt; [ <var&gt;createopts</var&gt; ] ]


The <code>NEW</code> command creates a new [[Programmer_Guide/Shell_Items|shell item]] of the type <var>itemtype</var> and named <var>itemname</var>.
The <code&gt;NEW</code&gt; command creates a new [[Programmer_Guide/Shell_Items|shell item]] of the type <var&gt;itemtype</var&gt; and named <var&gt;itemname</var&gt;.


;<var>itemtype</var>: The type of the new [[Programmer_Guide/Shell_Items|shell item]]. This must be unique (in the item namespace of a shell).
;<var&gt;itemtype</var&gt;: The type of the new [[Programmer_Guide/Shell_Items|shell item]]. This must be unique (in the item namespace of a shell).
;<var>itemname</var>: The name of the new [[Programmer_Guide/Shell_Items|shell item]]. If this argument is set to the character '''*''', the name is choosen automatically.
;<var&gt;itemname</var&gt;: The name of the new [[Programmer_Guide/Shell_Items|shell item]]. If this argument is set to the character '''*''', the name is choosen automatically.
;<var>createargs</var>: Arguments specifying parameters for the initialization of the new item. The format and meaning of these arguments are depending on the type of the new [[Programmer_Guide/Shell_Items|shell item]].
;<var&gt;createargs</var&gt;: Arguments specifying parameters for the initialization of the new item. The format and meaning of these arguments are depending on the type of the new [[Programmer_Guide/Shell_Items|shell item]].
;<code>/I</code>: Enable [[Programmer_Guide/Command_Reference_Options/Silent|silent error reporting]]. If specified, <code>NEW</code> will generate a warning rather than an error if arguments are missing or it is unable create the new item.
;<code&gt;/I</code&gt;: Enable [[Programmer_Guide/Command_Reference_Options/Silent|silent error reporting]]. If specified, <code&gt;NEW</code&gt; will generate a warning rather than an error if arguments are missing or it is unable create the new item.
;<code>/G</code>: Garbage collection. If specified, a temporary (or local) item created, which is automatically deleted when exiting the macro.
;<code&gt;/G</code&gt;: Garbage collection. If specified, a temporary (or local) item created, which is automatically deleted when exiting the macro.
;<code>/U</code>: If specified, the global item protection is enabled. This means all items created before this item (called the protection-master) are proteced from being deleted, until the global item protection is disabled, which is done by deleting the protection-master). Protected items can only be deleted using a special option of the [[Programmer_Guide/Command_Reference/DELETE|delete command]]. Note: This option is case-sensitive.
;<code&gt;/U</code&gt;: If specified, the global item protection is enabled. This means all items created before this item (called the protection-master) are proteced from being deleted, until the global item protection is disabled, which is done by deleting the protection-master). Protected items can only be deleted using a special option of the [[Programmer_Guide/Command_Reference/DELETE|delete command]]. Note: This option is case-sensitive.
;<code>/u</code>: If specified, the created item protected from being deleted. , until the global item protection is disabled, which is done by deleting the protection-master). Note: This option is case-sensitive.
;<code&gt;/u</code&gt;: If specified, the created item protected from being deleted. , until the global item protection is disabled, which is done by deleting the protection-master). Note: This option is case-sensitive.
;<code>/z</code>
;<code&gt;/z</code&gt;

Revision as of 19:31, 21 April 2011


NEW <var>itemtype</var> <var>itemname</var> [ /I ] [ /U|/u ] [ /G ] [ /Z ] [ <var>createargs</var> [ <var>createopts</var> ] ]

The <code>NEW</code> command creates a new shell item of the type <var>itemtype</var> and named <var>itemname</var>.

<var>itemtype</var>
The type of the new shell item. This must be unique (in the item namespace of a shell).
<var>itemname</var>
The name of the new shell item. If this argument is set to the character *, the name is choosen automatically.
<var>createargs</var>
Arguments specifying parameters for the initialization of the new item. The format and meaning of these arguments are depending on the type of the new shell item.
<code>/I</code>
Enable silent error reporting. If specified, <code>NEW</code> will generate a warning rather than an error if arguments are missing or it is unable create the new item.
<code>/G</code>
Garbage collection. If specified, a temporary (or local) item created, which is automatically deleted when exiting the macro.
<code>/U</code>
If specified, the global item protection is enabled. This means all items created before this item (called the protection-master) are proteced from being deleted, until the global item protection is disabled, which is done by deleting the protection-master). Protected items can only be deleted using a special option of the delete command. Note: This option is case-sensitive.
<code>/u</code>
If specified, the created item protected from being deleted. , until the global item protection is disabled, which is done by deleting the protection-master). Note: This option is case-sensitive.
<code>/z</code>

Navigation menu

Personal tools