Return to Statement


Replace Characters in a String Example

This example demonstrates the process of replacing several strings.

   STRING/STR1(10),STR2(10)

Function

Assigned Value

STR1='1235467890'

STR1=1235467890

STR2=REPSTR(STR1,'54','45',4)

STR2=1234567890

STR1=REPSTR(STR2,'345','0-',2)

STR1=120-67890