IsOpen()
Previous  Top  Next

:IsOpen() - Test if a Zip File is open.

Syntax

:IsOpen([<lWriteMode>]) --> lOpen  

Parameters

<lWriteMode>  
<lWriteMode> optionally specifies if the method should also Check if the Zip File is Opened in Write/Update Mode. The default value is .F. (FALSE), which means that the method only tests if a Zip File is open, but not if it is in Write mode.  

Returns

This method returns .T. (TRUE) if a Zip File is currently opened (and if it is opened in Write mode, if that was tested) or .F. (FALSE) if no Zip File is open (or if the Zip File is opened in Read-Only mode, if that was tested).  

Description

This method tests if a Zip File is currently open, and optionally, if it is open in Write/Update mode.  

Example

Test if a Zip file is currently open and in Write/Update mode, and if it is, add a File to it:  
 
if oZip:IsOpen(.t.)  
   oZip:AddFile('MyFile.dbf', '.\Data')  
endif