Programmer Guide/Command Reference/ATTRIBUTES: Difference between revisions
From STX Wiki
Jump to navigationJump to search
(→Usage) |
|||
| Line 11: | Line 11: | ||
:* in the current macro, if <code>ATTRIBUTES MACRO</code> is used; | :* in the current macro, if <code>ATTRIBUTES MACRO</code> is used; | ||
:* in the current shell, if <code>ATTRIBUTES SHELL</code> is used; | :* in the current shell, if <code>ATTRIBUTES SHELL</code> is used; | ||
:* globally, if <code>ATTRIBUTES | :* globally, if <code>ATTRIBUTES GLOBAL</code> is used. | ||
=== Example === | === Example === | ||
Revision as of 18:18, 11 March 2011
Contents
ATTRIBUTES
Overview
The ATTRIBUTES command retrieves a blank-separated list of attributes of a shell item, or of variables available in a given context.
Usage
#list := ATTRIBUTES item|MACRO|SHELL|GLOBAL- returns the blank-separated list of all available attributes for the supplied shell item
itemor a list of variables available:- in the current macro, if
ATTRIBUTES MACROis used; - in the current shell, if
ATTRIBUTES SHELLis used; - globally, if
ATTRIBUTES GLOBALis used.
- in the current macro, if
Example
#table := new table * #list := ATTRIBUTES $#table um 'The item attributes available for a table item are: $#list' delete /Var #list
See also the example script relection.sts.