mierlp Posted November 9, 2014 Share 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 Quote Link to comment Share on other sites More sharing options...
ZigZig Posted November 9, 2014 Share Posted November 9, 2014 Did you try to use a simple Pos() function ? 1 Quote Link to comment Share on other sites More sharing options...
Sherzod Posted November 9, 2014 Share Posted November 9, 2014 Hi, Try: ... if Pos('http://',lowercase(AURL)) = 0 then AURL := 'http://' + AURL; UniURLFrame1.URL := AURL; ... Best regards. 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.