Have you set the caclulation result to 'Unstored'?
At least that takes care of IWP or FMP.
However, iPhone and iPad are both "Go 1.2.2". Any suggestion there?
I assume both bits of kit use the same application, so it correctly returns the application they are using. It's a bit like trying to return if their workstation is an HP or a Dell. Why do you need to know? If it is for the screen size then you could just use Get (ScreenHeight) etc.
Ok, I could do 2 checks: ApplicationVersion and ScreenHeight. That should do it.
I assume the Get ( ApplicationVersion ) function is there because each of the operating systems perform slightly differently, so some features the developer uses may not work on the different platforms, so they have to build in alternatives for features that don't function on the user's current system. The Get (ScreenHeight ) is simply checking to see how much of your layout will fit on the screen (on any application version, any hardware, any screen) and is application-independent, so I think they have separate uses.
In one situation, I have a button for web users to execute an Exit Application to close out their session, but a desktop user that clicks that by mistake closes ALL databases and quits FMP (verified). It might also do that on FileMaker Go, but haven't checked that.
Another is where they are different layouts optimized for desktop, web, iPad, and iPhone. I want the correct one display when opened. An iPad screen is 1024x768, same as many computers and laptops, so both are needed.
Anywho, I think the problem is solved. Thank you again for your help.
Here is a basic version of what i use to switch to the appropriate layout depending upon which device opened the file - could probably be better, but it works :)
If[PatternCount(Get( ApplicationVersion );"iPad")]
Go to layout ["ipad"]
Else if[PatternCount(Get( ApplicationVersion);"Go")]
Go to layout ["iphone"]
Go to layout ["desktop"]
Ah Mr. Roland you are correct. I tought iPhone and iPad both were the same, but iPhone is Go 1.2.2, and iPad is Go_iPad 1.2.2. Even better. Again, thank you all. Good night.