Extracting values from UrlKey$
Oct 17, 2007 20:03:19 GMT -5
Post by turbov21 on Oct 17, 2007 20:03:19 GMT -5
A simple, basic function designed for grabbing values from the UrlKey$ string based on a key (key$). It's not fully complete, because I've still got to finish my URI decoder function for standing symbols like %20 into spaces and such, at which point I'll put it on the wiki. Here it is in action.
' Grabs a value from the url
function GetVal$(string,ドル key$)
value$ = ""
key$ = key$ + "="
startit = instr(string,ドル key$)
if startit > 0 then
startit = startit + len(key$)
endit = instr(string,ドル "&", startit)
if endit > 0 then
endit = endit - startit
value$ = mid$(string,ドル startit, endit)
else
value$ = mid$(string,ドル startit, len(string$))
end if
end if
GetVal$ = value$
end function