p$TDV:Util:Replace
p$TDV:Util:Replace
Replace all occurrences of text searched within an original text with a replacement text. The resulting text is returned.
Both texts can consist of as many characters as desired, and an empty string (") can be entered for the replacement text. This function is case-sensitive.
The function f$replace should be used instead of this procedure.
Syntax: | NewText = p$TDV:Util:Replace( Text, SeaText , ReplText ) | ||
| Argument | Type | Meaning |
| Text | String | The text in which a replacement is to be made |
| SeaText | String | The text which is to be replaced |
| ReplText | String | The text which is to be inserted in the other's place |
Result: | String | New compiled text | |
Examples: | Text = p$TDV:Util:Replace( '3.14', '.', ',')àText = '3,14' Text = p$TDV:Util:Replace( 'M 4 x 20', ' ','' )àText = 'M4x20' | ||