Hi Sergey
>It's VFP bug. DECLARE clears previous declarations for the function with aliases if DECLARE w/o alias issued. To work around it, you have to do DECLARE w/o aliases first.
Meaning, I can do declares later in code and can use aliases?
DECLARE getforegroundwindow ...
DECLARE getforegroundwindow AS _getforegroundwindow ...
so now I can retain _getforegroundwindow even if some class (like this statusbar) defines getforegroundwindow again?