| **Navigation:**  [[templates.htm|Templates]] > [[tlrcontents.htm|Template Language Reference]] > Built-in Template Procedures >====== REPLACE (replace attribute) {{c6h0068.jpg|C6H0068.jpg}} ====== | [[registered return template registration .htm|{{btn_prev_n.gif|Previous page}}]][[tlrcontents.htm|{{btn_home_n.gif|Return to chapter overview}}]][[separator return attribute string delimiter position .htm|{{btn_next_n.gif|Next page}}]] | | || **REPLACE(** //string, attribute, new value //[, //parameter// ] ) {{blk2blue.jpg|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 return attribute .htm|EXTRACT]] [[built in template procedures.htm|Built-In Template Procedures]]