maher Posted November 1, 2014 Share Posted November 1, 2014 How Can use UniPlatform? Before the MainModule Created Thanx Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted November 1, 2014 Administrators Share Posted November 1, 2014 What you want to exactly do with it? Quote Link to comment Share on other sites More sharing options...
maher Posted November 1, 2014 Author Share Posted November 1, 2014 Thanks for the quick reply I want get the Platform or (Client Info) when creating the MainModule . The aim is to define different variables for each Platform!, before show the login form!!!! Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted November 1, 2014 Administrators Share Posted November 1, 2014 uniPlatform is valid in OnCreate module of UniMainModule. Quote Link to comment Share on other sites More sharing options...
maher Posted November 1, 2014 Author Share Posted November 1, 2014 uniPlatform : [ ] What are the values that it should contain? Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted November 1, 2014 Administrators Share Posted November 1, 2014 TUniPlatform = (upDesktop, upMobile, upPhone, upTablet); TUniPlatforms = set of TUniPlatform; Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted November 1, 2014 Administrators Share Posted November 1, 2014 procedure TUniMainModule.UniGUIMainModuleCreate(Sender: TObject); var U : TUniPlatforms; begin U := UniSession.UniPlatform; end; Quote Link to comment Share on other sites More sharing options...
maher Posted November 2, 2014 Author Share Posted November 2, 2014 Alsalam alykom. I implemented the your sample , I get an error : "E2010 Incompatible types: 'MainModule.TUniPlatforms' and 'uniGUIApplication.TUniPlatforms' " On The Line : " U := UniSession.UniPlatform; Can you give a full sample Thanx Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted November 2, 2014 Administrators Share Posted November 2, 2014 Please add uses UniGUITypes to the uses list. Quote Link to comment Share on other sites More sharing options...
maher Posted November 2, 2014 Author Share Posted November 2, 2014 Thanx It's working now Quote Link to comment Share on other sites More sharing options...
asapltda Posted November 10, 2014 Share Posted November 10, 2014 Thanx It's working now Hi, could show how use the data to identify the type of device (in pascal code) thanks Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted November 10, 2014 Administrators Share Posted November 10, 2014 if upMobile in UniSession.UniPlatform then begin if upPhone in UniSession.UniPlatform then begin end else if upTablet in UniSession.UniPlatform then begin end; end else if upDesktop in UniSession.UniPlatform then begin end; 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.