STXCONSTANTS

From STX Wiki
< Programmer Guide‎ | Command Reference
Revision as of 15:05, 17 May 2010 by 193.171.195.8 (talk) (initial import)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

STXCONSTANTS

var := STXCONSTANTS *|keyword table

The STXCONSTANT command returns the list of constants supported in S_TOOLS-STx dependant on the keyword. If a table is passed, the table is emptied, a new entry is added for each constant and the number of entries is returned to var. If no table is passed, a space delimited concatenated string of the constants is returned.

Examples:

#stxConstants := STXCONSTANTS *

Returns a blank separated list of constants supported by the VAR STXCONSTANTS command

#nConstants := STXCONSTANTS * table        

Adds all constants supported by the VAR STXCONSTANTS command to the table and returns the number of entries to the variable #nConstants.

#nColors := STXCONSTANTS COLORS colorTable

Adds all supported color constants to the table colorTable and returns the number of entries to #nColors.

Navigation menu

Personal tools