How can I check by Calc function if some file is open at this moment? [closed]

asked 2018-06-25 04:08:52 +0200

shma_lo gravatar image

I need to have Calc function to determine if some file is open at this moment. For example function fnIsFileOpen("C:/xxx.txt") should return TRUE if file C:/xxx.txt was open and FALSE if it wasn't open when function was called.

edit retag flag offensive reopen merge delete

Closed for the following reason duplicate question by shma_lo
close date 2018-07-04 17:35:21.332516

Comments

Do you mean "was open with LibreOffice" or "was open with any application (i.e. Notepad)"? In the first case, look at the code TaskonDesktop() function from the standard library Tools, the Misc module. In the second case, just try to open it and analyze the error code

JohnSUN gravatar imageJohnSUN ( 2018-06-25 12:17:59 +0200 )edit