maher Posted November 1, 2014 Share Posted November 1, 2014 How Can use UniPlatform? Before the MainModule Created Thanx 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? 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!!!! 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. 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? 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; 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; 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 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. 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 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 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 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