User Tools

Site Tools


extract_return_attribute_.htm
Navigation:  Templates > Template Language Reference > Built-in Template Procedures >====== EXTRACT (return attribute) C6H0068.jpg ====== Previous pageReturn to chapter overviewNext page

EXTRACT( string, attribute [, parameter ] )

blk2blue.jpg

EXTRACT Returns the complete form of the specified attribute from the property string symbol.
string The symbol containing the properties to parse.
attribute A string constant or symbol containing the name of the property to return.
parameter An integer constant or symbol containing the number of the property's parameter to return. Zero (0) returns the entire parameter list (without the attribute). If omitted, the attribute and all its parameters are returned.

The EXTRACT procedure returns either the complete form of the specified attribute from the attribute string symbol, or just the specified parameter. This is useful if no built-in symbol exists for the particular attribute you need.

Return Data Type:     STRING

Example:

#SET(%MySymbol,EXTRACT(%ControlStatement,'DROPID'))   #!Return DROPID attribute

#SET(%MySymbol,EXTRACT(%ControlStatement,'DROPID',0)) #!Return all DROPID parameters

See Also:     REPLACE

Built-In Template Procedures

extract_return_attribute_.htm.txt · Last modified: 2021/04/15 15:57 by 127.0.0.1