SCREENWIDTH()

From Lianjapedia
Revision as of 10:10, 2 October 2020 by Yvonne.milne (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Purpose

Function to return the screen/viewport width

Syntax

SCREENWIDTH()

See Also

SCREENHEIGHT(), JavaScript built-in Lianja/VFP functions

Description

The SCREENWIDTH() function is returns the screen/viewport width in pixels.

Example

if screenwidth() < 900
    // handle UI elements for smaller screen accordingly
else
    // handle UI elements for larger screen accordingly
endif