base.Application.isMobile

Indicates if the application runs on a mobile device.

Syntax

base.Application.isMobile()
  RETURNING result BOOLEAN
  1. result is TRUE if the program runs on a mobile device.

Usage

This class method can be called to check if the program code is running on a smartphone or tablet device. The method will return TRUE if the program executes in standalone mode (i.e. the runtime system is on the mobile device).

Example

MAIN
  IF base.Application.isMobile() THEN
     MESSAGE "We are on a mobile device."
  END IF
END MAIN