Create urldecode.bm
This commit is contained in:
parent
aeaaf6661d
commit
cf16af6373
1 changed files with 16 additions and 0 deletions
16
urldecode.bm
Normal file
16
urldecode.bm
Normal file
|
|
@ -0,0 +1,16 @@
|
||||||
|
Function urldecode$ (strng As String)
|
||||||
|
Dim Tmpstr As String
|
||||||
|
Do Until count >= Len(strng)
|
||||||
|
count = count + 1
|
||||||
|
Select Case Mid$(strng, count, 1)
|
||||||
|
Case "%"
|
||||||
|
Tmpstr = Tmpstr + Chr$(Val("&H" + Mid$(strng, count + 1, 2)))
|
||||||
|
count = count + 2
|
||||||
|
Case "+"
|
||||||
|
Tmpstr = Tmpstr + " "
|
||||||
|
Case Else
|
||||||
|
Tmpstr = Tmpstr + Mid$(strng, count, 1)
|
||||||
|
End Select
|
||||||
|
Loop
|
||||||
|
urldecode = Tmpstr
|
||||||
|
End Function
|
||||||
Loading…
Add table
Add a link
Reference in a new issue