Since everyone needs this function:
replacestring will not do them all, so i did my own as well.
Code: Select all
Procedure.s replacestrin(st.s,vad.s,till.s)
If FindString(st.s,vad.s,1)
For a=1 To Len(st.s)
If Mid(st.s,a,1)=vad.s
final.s+till.s
Else
final.s+Mid(st.s,a,1)
EndIf
Next
ProcedureReturn final.s
Else
ProcedureReturn st.s
EndIf
EndProcedure
Procedure.s URLEncode(st.s)
st.s=URLEncoder(st.s)
st.s=replacestrin(st.s,"&","%26")
st.s=replacestrin(st.s,"!","%21")
st.s=replacestrin(st.s,"*","%2A")
st.s=replacestrin(st.s,"'","%27")
st.s=replacestrin(st.s,"(","%28")
st.s=replacestrin(st.s,")","%29")
st.s=replacestrin(st.s,";","%3B")
st.s=replacestrin(st.s,":","%3A")
st.s=replacestrin(st.s,"@","%40")
st.s=replacestrin(st.s,"&","%26")
st.s=replacestrin(st.s,"=","%3D")
st.s=replacestrin(st.s,"+","%2B")
st.s=replacestrin(st.s,"$","%24")
st.s=replacestrin(st.s,",","%2C")
st.s=replacestrin(st.s,"/","%2F")
st.s=replacestrin(st.s,"?","%3F")
st.s=replacestrin(st.s,"#","%23")
st.s=replacestrin(st.s,"[","%5B")
st.s=replacestrin(st.s,"]","%5D")
ProcedureReturn st.s
EndProcedure