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

This works...

First of all, never use Evaluate when you have native functions in Lotusscript. Also remember that Evaluate returns a variant/array, not a string value, so your code would not work.

Second, you should indicate what it is that does not work. What error do you get, on what line of code?

The code below shows two different ways to achieve what you are asking for.

Dim originalText As String
Dim newText As String

originalText = "This product was made in japan and exported"
newText = Replace(originalText, "made in japan","Manufactured & Assembled in Japan")
MsgBox newText,,"Using Replace()"

newtext = StrLeft(originalText,"made in japan")
newtext = newtext + "Manufactured & Assembled in Japan"
newtext = newtext + StrRight(originalText,"made in japan")
MsgBox newText,,"Using StrLeft() and StrRight()"


Feedback response number WEBB9CZJCW created by ~Dan Kikiterobu on 10/31/2013

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