Hi,
II am creating an Excel / Word object (via OLE) and want to open a file. How can I determine that this file is already open by someone ?
Hi,
II am creating an Excel / Word object (via OLE) and want to open a file. How can I determine that this file is already open by someone ?
simply try to open in exclusive mode before
FUNCTION MAIN( cFile )
LOCAL nHandle
nHandle := FOPEN( cFile , FO_EXCLUSIVE )
IF nHandle = -1
? "Error" , FERROR()
ELSE
? "nHandle" , nHandle
FCLOSE( nHandle )
ENDIF
RETURN NIL
Thanks !