skip to main | skip to sidebar

Lotus Domino

Wednesday, November 12, 2008

LotusScript equivalents for the @Replace

Function StringStuffReplaceString(strArg As String, strSrc As String,strDst As String) As String
Dim iPos As Integer
iPos = Instr(strArg, strSrc)
While iPos > 0
strArg = Left$(strArg, iPos - 1) + strDst + Mid$(strArg, iPos + Len(strSrc))
iPos = Instr(iPos + Len(strDst), strArg, strSrc)
Wend
StringStuffReplaceString = strArg
End Function
Posted by Lotus Domino at 5:09 PM

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Blog Archive

  • ►  2010 (1)
    • ►  March (1)
  • ▼  2008 (21)
    • ►  December (1)
    • ▼  November (14)
      • LotusScript equivalents for the @URLDecode
      • LotusScript equivalents for the @URLEncode
      • LotusScript equivalents for the @ProperCase
      • LotusScript equivalents for the @ReplaceSubstring
      • LotusScript equivalents for the @Elements
      • LotusScript equivalents for the @Replace
      • LotusScript equivalents for the @Picklist
      • LotusScript equivalents for the @Dbcolumn
      • LotusScript equivalents for the @Leftback
      • LotusScript equivalents for the @RightBack
      • LotusScript equivalents for the @Ends
      • LotusScript equivalents for the @Begins
      • LotusScript equivalents for the @Left
      • LotusScript equivalents for the @Right
    • ►  October (6)

About Me

Lotus Domino
View my complete profile