From Clomosy Docs

No edit summary
No edit summary
 
Line 24: Line 24:
<h2> See Also </h2>
<h2> See Also </h2>
* [[Clomosy_Class#System_Function | System Functions]]
* [[Clomosy_Class#System_Function | System Functions]]
{{#seo:|title=AppPlatform in Clomosy - Clomosy Docs}}
{{#seo:|description=Learn to use the Clomosy.AppPlatform function to identify the platform your project runs on, with predefined values for different operating systems.}}
{{#seo:|description=Learn to use the Clomosy.AppPlatform function to identify the platform your project runs on, with predefined values for different operating systems.}}

Latest revision as of 15:09, 24 December 2024

The platform on which the project is opened is returned. A return value of 0 indicates Windows, 1 indicates MacOS, 2 indicates iOS, 3 indicates Android, 4 indicates WinRT, and 5 indicates Linux.

Example

var
  platformStatus : Integer;
{
  platformStatus = Clomosy.AppPlatform;
  case platformStatus of
  {
    0 : ShowMessage('Windows');
    1 : ShowMessage('MacOS');
    2 : ShowMessage('IOS');
    3 : ShowMessage('Android');
    4 : ShowMessage('WinRT');
    5 : ShowMessage('Linux');
  }
}

See Also