ok ok hire is universal code: we can assume that url may contain multuiple =, so:
http://www.homeandlearn.co.uk/net/nets7p6.html
Code:Dim URL = "www.thesite.com/userID=123123" For i = 1 To URL.Length MsgBox(URL.Substring(URL.Length - i, i)) ' this is hire to show you what i mean by cuttin goff 'start cutting off 1 char from the end if the URL until we get this: =123123 (>= 0 means if found "=") If URL.Substring(URL.Length - i, i).IndexOf("=") >= 0 Then 'now we have =123123 & we replace = with nothing & vuala MsgBox(URL.Substring(URL.Length - i, i).Replace("=", "")) Exit For End If Next





Reply With Quote