From Xojo Documentation
Property (As Boolean )
| This property is only available on macOS and Windows platforms.
For cross-platform compatibility, use ＃If...＃Endif with the Target... specifiers to make sure you will not attempt to use this property on an incompatible platform.
This example sets the Landscape property.