This forum is closed to new posts and
responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:
Subject: Combing formula and lotus script/ using string functions
Feedback Type: Question
Product Area: Notes Client
Technical Area: Application Development
Platform: Windows
Release: 8.5.2
Reproducible: Not reproducible
Hi,
I am working on an agent where I need to find the string to the left and right of a string.
For e.g. Suppose there is a field which might has data like, "This product was made in japan and exported".
So, I need to change the text "made in japan" in that field to "Manufactured & Assembled in Japan". I simply need to replace a sequence of text within a string with some other text.
OrigText=doc.Field1(0)
appendLeft = Evaluate(|@Left(|&OrigText&|,"made in japan")|)
appendRight = Evaluate(|@Right(|& OrigText&|,"made in japan")|)
'appendLeft = StrLeft(OrigText,"made in japan" )
'appendRight = StrRight(OrigText,"made in japan" )
temptext= appendLeft + "Manufactured & Assembled in Japan" + appendRight
I am not able to make either Evaluate or StrLeft and StrRight functions work.
Thanks in advance!
Suji M
Feedback number WEBB9CZHNU created by ~Wendy Brekimarjip on 10/31/2013
Status: Open
Comments: