I notice that this function is available after Dr. Murdoch's post at R-GUI. I am further wondering how to use "Process" and "ProcessID" two choices. Suppose I created more than one 'Document' windows within MDI. I need to find their corresponding process ID or handle, in order to communicate with them correctly. Regards, Peng