PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
ScreenSize (Function)
In French: TailleEcran
ODBCOLE DBAvailable only with these kinds of connection
Returns the size (in inches) of the diagonal of the screen on the device where the application is run.
Notes:
  • ScreenType is used to find out the type of device screen (phone, tablet, PC, etc.).
  • In simulator mode, the size returned is not reliable.
Example
// If the application is displayed on a large screen (tablet or PC)
IF ScreenSize() >= 7 THEN
Info("The screen is a tablet or a PC")
END
Syntax
<Result> = ScreenSize()
<Result>: Real
Size of the diagonal of the screen in inches. Some examples:
  • Computer screen (diagonal greater than 13 inches).
  • Watch screen (diagonal less than 2 inches).
  • Tablet screen (diagonal included between 7 and 13 inches).
  • Phone screen (diagonal included between 2 and 7 inches).
Components
Android wd230android.jar
Minimum required version
  • Version 22
Comments
Click [Add] to post a comment