Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Zip file
Message
De
07/09/2000 20:09:49
 
 
À
07/09/2000 18:26:08
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Titre:
Divers
Thread ID:
00413942
Message ID:
00413955
Vues:
19
>Hello all. I am wondering if there is a zip tool that I could call from vfp out there for download. Class preferred.
>

There have been a number of articles on zip file access from VFP; Doug Hennig covered WinZip in an article, and there were several on DynaZip, a third-party ActiveX control that works well with VFP; the developer licensing for it is very reasonable (~ $300 to allow you unlimited distribution with your apps; WinZip is shareware, licensing is $80/user). There are several freeware products available; I've never used them.

>Also was wondering if anyone had any good tips on time manipualtion. I have to calculate duration given the start and end time in nn:nn.nn format. (24 hour format as well.)
>

Use datetime data types; the difference between two datetimes is a duration in seconds; you can convert that back to a string easily by adding the duration onto a datetime set at midnight via TTOC():

nDuration = EVAL('{^2000-01-01,'+cTimeStr+'}') - {^2000-01-01,0:0:0}
* nDuration is time in seconds
* Given two datetimes, a start and end
nDuration = tDateTimeEnd - tDateTimeStart
cHMSofDuration = TTOC(DTOT(DATE())+nDuration,2)
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform