just see the code:
dim a as variant, b as variant, r as variant
a = thisDoc.field1
b = thisDoc.field2
r = replace( a, b, “” )
When run to “replace” call, the Notes Client crush, error screen:

but if I modify the code:
dim r as variant
r = replace( thisDoc.field1, thisDoc.field2, “” )
the “replace” call is pass and return the correct result.
I said that this is a very SERIOUS BUG, IBM should resolve it as soon as posible!