Further to Jooel's response, you should check:

SET, SETL, and SETM..

Also, you will want to check the notes about - WM_SETTINGCHANGE.

HTH,

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's