maher Posted November 1, 2014 Posted November 1, 2014 How Can use UniPlatform? Before the MainModule Created Thanx Quote
Administrators Farshad Mohajeri Posted November 1, 2014 Administrators Posted November 1, 2014 What you want to exactly do with it? Quote
maher Posted November 1, 2014 Author 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
Administrators Farshad Mohajeri Posted November 1, 2014 Administrators Posted November 1, 2014 uniPlatform is valid in OnCreate module of UniMainModule. Quote
maher Posted November 1, 2014 Author Posted November 1, 2014 uniPlatform : [ ] What are the values that it should contain? Quote
Administrators Farshad Mohajeri Posted November 1, 2014 Administrators Posted November 1, 2014 TUniPlatform = (upDesktop, upMobile, upPhone, upTablet); TUniPlatforms = set of TUniPlatform; Quote
Administrators Farshad Mohajeri Posted November 1, 2014 Administrators Posted November 1, 2014 procedure TUniMainModule.UniGUIMainModuleCreate(Sender: TObject); var U : TUniPlatforms; begin U := UniSession.UniPlatform; end; Quote
maher Posted November 2, 2014 Author 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
Administrators Farshad Mohajeri Posted November 2, 2014 Administrators Posted November 2, 2014 Please add uses UniGUITypes to the uses list. Quote
asapltda Posted November 10, 2014 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
Administrators Farshad Mohajeri Posted November 10, 2014 Administrators 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
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.