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

delete substring

Former Member
0 Likes
5,241

I have two var name *var1* (exp nicolas van brussel) and one var nachna var2 (van brussel) how can i extract the vorna from the first string (delete the subtring var2 from var1 ).

Thanks in advance

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
2,039

Hi,

you can do this:

REPLACE var2 with ' ' into var1.

CONDENSE var1 NO-GAPS.

regards.

2 REPLIES 2
Read only

Former Member
0 Likes
2,040

Hi,

you can do this:

REPLACE var2 with ' ' into var1.

CONDENSE var1 NO-GAPS.

regards.

Read only

Former Member
0 Likes
2,039

Write as follows :

REPLACE ALL OCCURRENCES OF var2 IN

var1 WITH ' '.