Syntax: @attrnames(attribute_pattern_list[, name_pattern_list, attribute_search_options])
Argument1: pattern string list, attribute_pattern_list
Argument2: pattern string list, name_pattern_list
Argument3: int, attribute_search_options
The attribute_search_options is an integer value indicating how a “*” in the attribute_pattern should be treated when matching. Use “0” to treat “*” as a wildcard and “1” to treat “*” as a literal. The default is “0”.
Return: string list
Returns a string list of all attribute names of the current workfile page that satisfy the attribute_pattern_list and, optionally, the object name_pattern_list. The attribute_pattern_list may be made up of any number of “?” (indicates any single character) or “*” (indicates any number of characters).
Examples
If a workfile contains three objects named “GDP”, “UNEMP”, and “INFLATION”
@attrnames("M*")
returns the list of attributes of GDP, UNEMP, INFLATION that begin with “M”. Alternately,
@attrnames("M* S*", “GDP”)
returns the list of attributes for the object GDP that begin with “M” and “S”.
If GDP had an attribute named “*Note” and UNEMP had an attribute named “footnote” the command
@attrnames("*NOTE", “*”)
will return “*Note footnote”. This is because the “*” in “*Note” is treated as a wildcard. However, the command
@attrnames("*NOTE", “*”, 1)
will return “*Note”, since the “*” in “*Note” is treated as a literal.