cMesaj = "The program automatically will be closed in ten seconds ..." messagebox(cMesaj, 48, "The program is closing", 10000) Keyboard '{CTRL+F4}' && this line is to close report preview window in session. But it is useless QUIT && if there is a opened report preview window in a session, && Program gives this mesaj only. "Cannot quit Visual Foxpro"