OrientationAllowed

Family: Core · One form

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

NameType
portraitinteger
portrait2integer
landscapeinteger
landscape2integer

Every form returns

nothing

Example · generated

OrientationAllowed(1, 1, 1, 1)DO  Sync()LOOP

OrientationAllowed 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.

Related commands

200 commands in Core