Replace with Script

Hello all,

I have two fields

Multi Value Field A values:

1~1~1~1

2~2~2~2

3~3~3~3

FieldB value:

33~3~3~3

How can I replace 3~3~3~3 with 33~3~3~3 using Script.

I am using Replace function. But can’t get it right.

tEvaluate=|@Replace(FieldA;FieldA(x);FieldB)|

result = Evaluate(tEvaluate, doc)

where x is position of 3~3~3~3 within fieldA.

Thank you,

Subject: Replace with Script

Yu can use similar code like this

Vals = document.FieldA

Vals(x) = “33~3~3~3” - where x is yr position in the field.

document.FieldA=Vals

Subject: RE: Replace with Script

Thank you. I figured it out.

-v