Returns a value representing the orientation of the window on which the script is acting.
Get ( WindowOrientation )
Data type returned
Originated in version
In Claris Pro, Claris Go, FileMaker Pro, and FileMaker Go only, returns:
-2 for landscape left
-1 for landscape right
0 for square (Claris Pro, Claris WebDirect, FileMaker Pro, and FileMaker WebDirect only)
1 for portrait
2 for portrait upside down
- The window on which the script is acting may not necessarily be the foreground window.
If the window that the current script is acting on is in portrait orientation, Get(WindowOrientation) returns 1.
A calculation field named Orientation uses Get(WindowOrientation) to return a value as listed above. Another calculation field references the Orientation field and uses the If function, which returns Portrait if the Orientation field returns a value greater than 0 and returns Landscape if the Orientation field returns a value less than 0:
If ( Orientation > 0 ; "Portrait" ; "Landscape" )