![]() |
If Video() |
IF Video returns three values describing the video display capability of the user's computer: number of colors supported, horizontal resolution, and vertical resolution. Any of the numbers can be omitted.
Example 1:
IF VIDEO() > 3,640,480
FILE: "color.000", FROM="c:\video\color.drv"
ELSE
FILE: "bw.000", FROM="c:\video\bw.drv"
ENDIF
If the user's video capability is greater than 640 horizontal resolution by 480 vertical resolution, and 3 colors, then Color.drv is installed. Otherwise, Bw.drv is installed.
Example 2:
IF VIDEO() > 3
FILE: "color.000", FROM="c:\video\color.drv"
ELSE
FILE: "bw.000", FROM="c:\video\bw.drv"
ENDIF
In this example, only the number of colors is checked.
Example 3:
IF VIDEO() > 640,480
FILE: "color.000", FROM="c:\video\color.drv"
ELSE
FILE: "bw.000", FROM="c:\video\bw.drv"
ENDIF
The example checks the resolution.