Command Reference : Programming Language Reference
  
 
@wfattrnames
Syntax: @wfattrnames(attribute_pattern_list[, name_pattern_list, page_name_list, attribute_search_options])
Argument1: pattern string list, attribute_pattern_list
Argument2: pattern string list, name_pattern_list
Argument3: string list, page_name_list
Argument4: 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 that satisfy the attribute_pattern_list and, optionally, the object name_pattern_list and page_name_list. The attribute_pattern_list may be made up of any number of “?” (indicates any single character) or “*” (indicates any number of characters). If a page_name_list is not specified the current workfile page is used.
Examples
If a workfile contains three pages named “PAGE1”, “PAGE2”, and “PAGE3”,
@wfattrnames("M*")
returns the list of attributes for the objects in the current page that begin with “M”. Alternatively,
@wfattrnames("M* S*", “*”, “page1 page2”)
returns the list of attributes for all the objects on PAGE1 and PAGE2 that begin with “M” and “S”.
If an object on PAGE1 had an attribute named “*Note” and another object on the same page had an attribute named “footnote” the command
@wfattrnames("*NOTE", “*”, “page1”)
will return “*Note footnote”. This is because the “*” in “*Note” is treated as a wildcard. However, the command
@wfattrnames("*NOTE", “*”,”page1”,1)
will return “*Note”, since the “*” in “*Note” is treated as a literal.