skip to main | skip to sidebar

Lotus Domino

Monday, November 17, 2008

LotusScript equivalents for the @URLDecode

Function urlDecode(s As String) As String
If Len(s) = 0 Then Exit Function
Dim i As Integer
Dim tmp As String
Dim c As String
For i = 1 To Len(s)
c = Mid$(s, i, 1)
If c = "+" Then c = " "
If c = "%" Then
c = Chr$("&H" + Mid$(s, i + 1, 2))
i = i + 2
End If
tmp = tmp + c
Next i
urlDecode = tmp
End Function
Posted by Lotus Domino at 4:58 PM

1 comment:

Lord Servant said...

Thanks, works great!

March 24, 2011 at 11:21 AM

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