What it does
OrientationAllowed writes a value: it sets rather than reads. It takes portrait (an integer), portrait2 (an integer), landscape (an integer) and landscape2 (an integer), and returns nothing.
Syntax
OrientationAllowed(portrait integer, portrait2 integer, landscape integer, landscape2 integer)Parameters
| Name | Type |
|---|---|
| portrait | integer |
| portrait2 | integer |
| landscape | integer |
| landscape2 | integer |
Every form returns
nothing
Example · generated
OrientationAllowed(1, 1, 1, 1)DO Sync()LOOPOrientationAllowed is called with values of the types its signature asks for. The DO … LOOP is not decoration: a classic BASIC program ends the moment it runs out of lines, and Sync() is what draws the frame.