User Tools

Site Tools


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

REPLACE( string, attribute, new value [, parameter ] )

blk2blue.jpg

REPLACE Finds the complete form of the specified attribute from the property string symbol and replaces it with the new value.
string The symbol containing the properties to parse.
attribute A string constant or symbol containing the name of the property to find.
new value A string constant or symbol containing the replacement value for the attribute.
parameter An integer constant or symbol containing the number of the property's parameter to affect. Zero (0) affects the entire parameter list (without the attribute). If omitted, the attribute and all its parameters are affected.

The REPLACE procedure replaces either the complete form of the specified attribute from the attribute string symbol, or just the specified parameter with the new value. It returns the modified string.

Return Data Type:     STRING

Example:

#SET(%ValueConstruct,REPLACE(%ValueConstruct,'MSG',''))  #!Remove MSG attribute

See Also:     EXTRACT

Built-In Template Procedures

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