Programmer Guide/Command Reference/ATTRIBUTES: Difference between revisions

From STX Wiki
Jump to navigationJump to search
No edit summary
No edit summary
Line 3: Line 3:


=== Overview ===
=== Overview ===
The <code>ATTRIBUTES</code> command retrieves a blank-separated list of attributes of a [[Programmer_Guide/Shell_Items|shell item]], or of variables available in a given context.
The <code>ATTRIBUTES</code> command retrieves a blank-separated list of attributes of a [[Programmer_Guide/Shell_Items|shell item]], or of variables available in a given context.


=== Usage ===
=== Usage ===
;<code>#list := ATTRIBUTES <var>item</var>|MACRO|SHELL|GLOBAL</code>: returns the blank-separated list of all available attributes for the supplied shell item <var>item</var> or a list of variables available:
;<code>#list := ATTRIBUTES <var>item</var>|MACRO|SHELL|GLOBAL</code>: returns the blank-separated list of all available attributes for the supplied shell item <var>item</var> or a list of variables available:
:* in the current macro, if <code>ATTRIBUTES MACRO</code> is used;
:* in the current macro, if <code>ATTRIBUTES MACRO</code> is used;

Revision as of 10:41, 23 March 2011

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 item or a list of variables available:
  • in the current macro, if ATTRIBUTES MACRO is used;
  • in the current shell, if ATTRIBUTES SHELL is used;
  • globally, if ATTRIBUTES GLOBAL is used.

Example

#table := new table *
#list := ATTRIBUTES $#table
um 'The item attributes available for a table item are: $#list'
delete /Var #table

See also the example script reflection.sts.


Navigation menu

Personal tools