Skip to main content
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:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal

HCL Notes/Domino 8.5 Forum (includes Notes Traveler)

HCL Notes/Domino 8.5 Forum (includes Notes Traveler)

Previous Next
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:

Combing formula and lotus script/ u... (~Wendy Brekimar... 31.Oct.13)
. . This works... (~Dan Kikiterobu... 31.Oct.13)
. . . . Yeah, its working! (~Wendy Brekimar... 1.Nov.13)




Printer-friendly

Search this forum

Member Tools


RSS Feeds

 RSS feedsRSS
All forum posts RSS
All main topics RSS