>>Christian,
>>
>>The screen resolution and other information about Windows can be retrieved via SYSMETRIC(1) (Horizontal resolution) and SYSMETRIC(2) (Vertical resolution). The function basically maps to GetSystemMetrics(), which can be used as an alternative API call to the above for screen resolution, without having to retrive a device context.
>
>Thanks that you told me, simpler is better of course. Never stop learning :)
Well, as you've found out, GetDeviceCaps() and GetSystemMetrics() both can be used to return values (such number of colors or number of monitors) that are directly available through VFP. I'd certainly encourage you to keep digging.
BTW, VFP is such a big language in terms of the sheer number of functions, that it can be hard to track down whether or not a particular value can be retrieved by a native function (this is especially true with the SYS() functions).
George
Ubi caritas et amor, deus ibi est