Home : Products : Hach WIMS : Hach WIMS Client : Documentation : Function Reference : Spread Functions : Primitive Functions : REPLACE
Q11582 - INFO: REPLACE

REPLACE (Primitive Spread Function) replaces part of a text string with a different text string.

SYNTAX:

REPLACE(Old_text, Start_char, Num_chars, New_text)

REMARKS:

Arguments are as follows:

Argument Description 
Old_text Original text in which you want to replace characters. 
Start_char Starting position in the original text to begin the replacement. 
Num_chars Number of characters in the original text that you want to replace with characters from the new text. 
New_text New text that will replace characters in the original text. 


Use the REPLACE function to replace a specified number of characters in a specified location with other characters. Use the SUBSTITUTE function to replace specific text with other text. 

EXAMPLES:

The following formula replaces three characters with one character, starting with the sixth character in the provided text:

REPLACE("abcdefghijk", 6, 3, "%") equals abcde%ijk

Related Articles
Q11534 - INFO: FIND
Q11598 - INFO: SUBSTITUTE

Article Attachments
No Attachments Available.

Related External Links
No Related Links Available.
Help us improve this article...
What did you think of this article?

poor 
1
2
3
4
5
6
7
8
9
10

 excellent
Tell us why you rated the content this way. (optional)
 
Approved Comments...
No user comments available for this article.
Created on 8/27/2008 4:50 PM.
Last Modified on 3/30/2020 9:23 AM.
Last Modified by Scott Dorner.
Article has been viewed 3997 times.
Rated 0 out of 10 based on 0 votes.
Print Article
Email Article