David Posted July 8, 2014 Share Posted July 8, 2014 Hi all, How can I get the name and version of the browser? uniSession.Browser will be brIE,brFireFox,...etc.But could not known the version. Thanks Link to comment Share on other sites More sharing options...
Semper Posted July 8, 2014 Share Posted July 8, 2014 var ClientInfo : TUniClientInfoRec; BrowserType: string; BrowserVersion: string; begin ClientInfo:=UniApplication.ClientInfoRec; BrowserType:=ClientInfo.BrowserType; BrowserVersion:= ClientInfo.BrowserVersion; end; Link to comment Share on other sites More sharing options...
David Posted July 10, 2014 Author Share Posted July 10, 2014 Thanks Semper! Link to comment Share on other sites More sharing options...
Alessandro Posted November 27, 2015 Share Posted November 27, 2015 [sOLVED] I had put the code in the Main Module. I wrote the code in the MainForm and is now ok. Thank you. ----------------------------------------------------------------------------- Hello everyone. I follow the example above, but I can not build the my project. I opened the ClientInfo Demo and perfect works. I did the entire procedure in my project, but not working. I forgot to declare somewhere some unit? XE5, uniGUI Version:0.95.0 build 1046 Code: procedure TMainForm.UniFormActivate(Sender: TObject); var C : TUniClientInfoRec; begin UniLabel7.Caption:=UniApplication.RemoteAddress; C:=UniApplication.ClientInfoRec; <----- PROBLEM: undeclared idenifier. UniLabel6.Caption:=C.BrowserType; UniLabel4.Caption:=IntToStr(C.BrowserVersion); UniLabel5.Caption:=C.OSType; end; Thanks. Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now