Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 2

>>>>>>>>>>>>>>>>>>>>>>>>>>>

New features in ZipMgr v3.0


>>>>>>>>>>>>>>>>>>>>>>>>>>>
(release date May 14, 2003)

The class was renamed Zip Automation Manager, and the class
library was renamed ZipMgr.VCX.

New method IsWinZipInstalled() returns .T. if WinZip� is installed,


otherwise returns .F.

ZipMgr now looks for the VFP registry class (_registry.vcx)


under the VFP installation root directory, rather than under
the directory from which VFP was started.

ZipMgr is now distributed only as a visual class library (vcx).


If you want a PRG-based class you can easily create one yourself;
see the help file for instructions.

The help file was updated and improved.

License Change: Zip Automation Manager is still free, but can now be
redistributed only as part of a VFP application. Webmasters wanting
to include Zip Automation Manager on their Web site are asked to
provide a link to the file on the author's Web site rather than
posting a copy of the file on their own Web site. The file can be
down-loaded from http://www.ita-software.com/foxpage.htm. Please
refer to the revised license agreement in the help file for complete
information.

>>>>>>>>>>>>>>>>>>>>>>>>>>>
New features in ZipMgr v2.0
>>>>>>>>>>>>>>>>>>>>>>>>>>>
(release date July 21, 2002)

New Properties:
---------------
nRunType 1=API_AppRun, 2=Windows Script Host
nWSHWindowType 0-7 (see WSH doc)

New Methods:
------------
RunCommand() - called by AddFiles() and ExtractFiles() to
run WinZip�; uses value of nRunType to determine
what run type to use; can be subclassed so you
can put in your own code
SetRunType( tnRunType) - set the value of nRunType
GetRunType() - retrieve the value of nRunType
SetWSHWindowType( tnType) - set the value of nWSHWindowType
GetWSHWindowType() - retrieve the value of nWSHWindowType

Choice of API_AppRun or WSH


---------------------------
You can elect to have ZipMgr run WinZip� using either Ed Rauh's
API_AppRun (as in earlier releases of ZipMgr) or the Windows
Script Host (WSH). To use API_AppRun, set the value of nRunType
to 1 (or leave it alone - this is the default value). To use WSH,
set the value of nRunType to 2. For example:
ox=newobject( "zipmgr", "zipmgr.prg")
ox.SetRunType(2) && Use WSH
* proceed as before...

Other:
------
ZipMgr is now released as both a prg-based class and a
vcx-based class. The function is identical in both incarnations.

Subclassing ZipMgr:
----------------------
To customize ZipMgr for your own preferences it is recommended
that you create a subclass of ZipMgr and override the default
behavior with your own code. For example, if you want to have
ZipMgr run WinZip� using something other than API_AppRun or WSH,
you can override the default code in the RunCommand() method.

Progammatically, you would do this as follows:


SET PROCEDURE TO zipmgr.prg ADDITIVE
DEFINE CLASS myZipMgr AS zipmgr
PROTECTED PROCEDURE RunCommand()
WAIT WINDOW "This is my sub-classed RunCommand() method"
* Override the default RunCommand() method code here
* to run the command in THIS.cCommandLine in whatever
* way you may want to.
*
* Be sure to return numeric: 0 if OK, <> 0 if not OK.
*
RETURN 0
ENDPROC && RunCommand()
ENDDEFINE

Or of course you can create a subclass in the class browser.

-----------------------------------------------------------
WinZip� is a registered trademark of WinZip Computing, Inc.

You might also like