Article ID: 172161
Article Last Modified on 7/1/2004
****Begin Code Example****
IF ATC("Visual",Version())>0
SET LIBRARY TO HOME()+"FoxTools.cfm"
Else
SET LIBRARY TO SYS(2033,1)+":FoxTools.mlb"
ENDIF
nvideocolors=FxGDepth()
IF nvideocolors >0
WAIT WINDOW "Your Monitor is running "+ALLTRIM(STR(nvideocolors)) ;
+ "colors"
ELSE
WAIT WINDOW "Your monitor is running millions of colors"
ENDIF
****End Code Example****
The FxGDepth() function returns an integer indicating the number of colors
currently running on the monitor. However, setting the monitor to millions
of colors causes the FxGDepth() function to return 0. To change the number
of colors the monitor uses, in the Apple menu, choose Control Panels and
then Monitors.
170814 Determining the Amount of Physical RAM on a Mac from VFP
Keywords: kbhowto kbcode KB172161