Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

All occurences in built-in replace function

Astashonok
Participant
0 Likes
2,066

Can built-in replace function act like REPLACE ALL OCCURENCES statement?

I found out it only replace only the occurence specified in occ parameter.

1 ACCEPTED SOLUTION
Read only

DoanManhQuynh
Active Contributor
1,940

You can set occ = 0 to replace all.

3 REPLIES 3
Read only

DoanManhQuynh
Active Contributor
1,941

You can set occ = 0 to replace all.

Read only

1,940

Pavel Astashonok maybe you were mislead by the text in the "occ" part, the documentation is to be read very carefully...:

  • replace: "If occ contains the value 0, all occurrences are replaced"
  • occ: "Except in the case of the replacement function replace, the value 0 raises an exception"
Read only

0 Likes
1,940

Yes, my bad. I noticed only part of documentation with exception