Get(ScreenDepth)

Returns the number of bits needed to represent the color or shade of gray of a pixel on the main screen.

Format 

Get ( ScreenDepth )

Parameters 

None

Data type returned 

number

Originated in version 

6.0 or earlier

Description 

A value of 8 represents 256 (equal to 28) colors or shades of gray.

Notes 

  • In FileMaker WebDirect, this function is not supported and returns 32.

Example 1 

Returns 32 on a display showing millions (232) of colors.

Returns 16 on a display showing thousands (216) of colors.

Returns 4 on a VGA display.

Returns 1 on a black-and-white display.