Hi, long if (system(_aplActive) = _ end if What goes after the _ I need to know if my program is in the foreground or background so if it's in the background I can display a certain window Brian