mierlp Posted November 9, 2014 Posted November 9, 2014 Hi, I would like to create a simple browser where the user can surf to a company website from within my applications. I use the URLFrame example. But when you enter : www.unigui.com WITHOUT http:// then the urlframe thinks you want to open a local file if i use it with HTTP:// it works So...how can i : check if there's Always HTTP:// in the string when a user enters a url or how to force it there will Always be HTTP:// into the string. Regards Peter
ZigZig Posted November 9, 2014 Posted November 9, 2014 Did you try to use a simple Pos() function ? 1
Sherzod Posted November 9, 2014 Posted November 9, 2014 Hi, Try: ... if Pos('http://',lowercase(AURL)) = 0 then AURL := 'http://' + AURL; UniURLFrame1.URL := AURL; ... Best regards. 1
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now