*-- If a process is running, beep and do not allow closing of app LOCAL lcCallingProgram lcCallingProgram = "" FOR I = 1 to 128 IF EMPTY(PROGRAM(I)) lcCallingProgram=PROGRAM(I-3) EXIT ENDIF ENDFOR IF UPPER(RIGHT(lcCallingProgram,3))!=".DO" AND UPPER(lcCallingProgram)!="DOFORM" ??CHR(7) NODEFAULT RETURN ENDIF *-- CHANGE - RDH - Sept 17, 1996 *-- Code to release the app when close bar clicked This.CleanUp() *-- for some reason this delau us needed; if it not here, then *-- you get "GoApp is not an object" message (go figure) =INKEY(1) Release This