getOrient Method

Purpose:

Returns the orientation of the device landscape or portrait.  The orientation may change if your rotate your phone unless the feature is turned off in Android.

Syntax:

getOrient

Comments:

returns 1 for portrait

returns 2 for landscape

If you want your app to work properly you may have to adjust position of controls depending on orientation

Example:

if  canvas.getOrient = 1 then

p "portrait mode"

endif

1